log2
The log2 function returns the (base-2) logarithm function.
Syntax
log2( X )
Arguments
- X: A real number greater than 0.
Results
- The logarithm is the base-2 logarithm: the inverse of the exponential function (exp) with base 2.
nullif the argument is negative or null or can’t be converted to arealvalue.
Examples
This returns 4:
print log2( 16 )