Wikidev
CATEGORY
CONTACT
APP
Sign Up
Login
Submit
You are here :
python_3
→
math
→
mathlog2
math.log2() - math
Return the base-2 logarithm of x. This is usually more accurate than log(x, 2).
Syntax
math.log2(x)
Example
Output / Return Value
Limitations
Alternatives / See Also
Reference