Syntax
LOG2(X)
Purpose
LOG2() returns the base-2 logarithm of X.
Examples
obclient> SELECT LOG2(65536);
+-------------+
| LOG2(65536) |
+-------------+
| 16 |
+-------------+
1 row in set
obclient> SELECT LOG2(-65536);
+--------------+
| LOG2(-65536) |
+--------------+
| NULL |
+--------------+
1 row in set, 1 warning