log2

log2

> Functions

Calculates the logarithm in base 2 of the number number.

Parameters
Return
Examples

log2(1) // 0.0 log2(10) // 3.3219280948873626 log2(16) // 4.0