Syntax
LOG2(X)
Purpose
You can call this function to return the base-2 logarithm of X.
Examples
obclient> SELECT LOG2(65536);
+-------------+
LOG2(65536)
+-------------+
16
+-------------+
1 row in set (0.00 sec)
obclient> SELECT LOG2(-65536);
+--------------+
LOG2(-65536)
+--------------+
NULL
+--------------+
1 row in set, 1 warning (0.00 sec)