log2()

Gets the base 2 logarithm of a number.

This function is valid in v2.13.0 to v2.14.0. This function has been downloaded 25 times.

Parameter

{number} x
A number.

Returns

{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.