You are here : python_3mathmathlog2

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