log2()

Gets the base 2 logarithm of a number.

This function is valid in v2.13.0 to v2.23.0. This function has been downloaded 29 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 directly requires the following function which is included automatically:

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

Requiring Function

This function is directly required by the following function:

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