LOG2
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 │
└─────────────┘
Last modified April 23, 2024 at 12:42 PM EST: updating numerical functions (2a94341)