Python ldexp function

ldexp(x,i) function is the reverse of frexp(), it returns x * (2**i). It's a method of math module.

>>> import math
>>> math.ldexp(2,3)
16.0




















endmemo.com © 2024  | Terms of Use | Privacy | Home