LOG2
Learn how to use the LOG2 math function in PlaidCloud Lakehouse. Returns the base-2 logarithm of a number - see syntax, examples, and output.
Returns the base-2 logarithm of a number.
Analyze Syntax
func.log2(<x>)
Analyze Examples
func.log2(8)
┌─────┐
│ 3.0 │
└─────┘
SQL Syntax
LOG2(<x>)
SQL Examples
SELECT LOG2(8);
┌─────┐
│ 3.0 │
└─────┘