Provide the logarithm base 2 of 6.
SELECT LOG2(6); |
The LOG2() function calculates the base-2 logarithm of a number.
Note: Also refer to the LOG() function for similar functionality.
LOG2(number) |
Parameter |
Description |
number |
A numerical value that must exceed zero. |
Works in: | From MySQL 4.0 |
Provide the logarithm base 2 of 64.
SELECT LOG2(64); |