log2

Return the base 2 logarithm of a given number.

This function does not generate a change.

Function

log2(number)

Arguments

Argument Type Description
number int/float (required) Input number, must be > 0.

Return value

Returns with a float or a value_err() on negative or zero input number.

Example

log2() function example:

log2(2.7183);

Return value in JSON format

1.4427046851812222