Log2

Log2(n)

Integer base 2 logarithm of n.

Log2(n) = \log_2(n)

Parameters:
npositive int
Returns:
resultpositive int

Examples

>>> import openturns as ot
>>> int(ot.SpecFunc.Log2(42))
5