Skip to content

Returns the base-2 logarithm of a number.

func.log2(<x>)
func.log2(8)
┌─────┐
│ 3.0 │
└─────┘
LOG2(<x>)
SELECT LOG2(8);
┌─────┐
│ 3.0 │
└─────┘