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
static float
Log2
(const float f)
Parameters
f:
the value to return the binary logarithm of.
Returns
Returns the binary logarithm.