Name: log2
Category: Arithmetic
Description:
Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.
Syntax:
log2(x)
Examples:
log2(0.03125)
-5
log2(16)
4
log2(16) / log2(2)
4
pow(2, 4)
16
See also: exp, log1p, log, log10