math.log2()
Computes the base-two logarithm.
Signature
math.log2(x)
Parameters
One number.
Returns
f64, with negative infinity at zero and NaN for negative inputs.
Behavior
Uses the C math operation.
Errors
Requires a number.
Example
use math
assert(math.log2(8) == 3)