SpecFunc_Log2

SpecFunc_Log2(n)

Integer base 2 logarithm of n.

Log2(n) = \log_2(n)

Parameters:n : positive int
Returns:result : positive int

Examples

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