Documentation
›
API Reference
›
Object
›
Math
Log2
Lua
C++
This function returns the binary logarithm of a value. For example, 2^8 = 256, and Log2(256) = 8.
Syntax
number
Log2
(number f)
Parameters
f:
the value to return the binary logarithm of.
Returns
Returns the binary logarithm.