Gets the base 2 logarithm of a number.

This function is valid in v2.13.0 to v2.20.0. This function has been downloaded 22 times.


{number} x
A number.


The base 2 logarithm of the given number. If the number is negative, NaN is returned.

Required Function

This function requires the following function which is included automatically:

  • log10()
    Gets the base 10 logarithm of a number.