Return the base 2 logarithm of a given number.
This function does not generate a change.
log2(number)
Argument | Type | Description |
---|---|---|
number | int/float (required) | Input number, must be > 0. |
Returns with a float or a value_err() on negative or zero input number.
log2() function example:
log2(2.7183);
Return value in JSON format
1.4427046851812222