LOG2
Learn how to use the LOG2 numeric function in PlaidCloud Lakehouse. Returns the base-2 logarithm of x. Includes detailed syntax, examples, and usage reference.
Returns the base-2 logarithm of x. If x is less than or equal to 0.0E0, the function returns NULL.
Analyze Syntax
func.log2( <x> )
Analyze Examples
func.log2(65536)
┌──────────────────┐
│ func.log2(65536) │
├──────────────────┤
│ 16 │
└──────────────────┘
SQL Syntax
LOG2( <x> )
SQL Examples
SELECT LOG2(65536);
┌─────────────┐
│ log2(65536) │
├─────────────┤
│ 16 │
└─────────────┘