Returns the base 2 logarithm of a number.
log2(value)
value
A value.
A number.
Math.log2(128)
7
2 ** Math.log2(256)
256