Log2

Value = Log2 ( Number AS Float ) AS Float

Computes the binary logarithm of a number.

Log2(x) = Log(x) / Log(2)

Examples

PRINT Log2(16)
4

See also