Gets the base 2 logarithm of a number.

This function is valid in v2.13.0 to v2.18.1. This function has been downloaded 14 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.