math module provides some basic mathematical functions for
working with floating-point numbers.
base of the natural logarithm
the ratio of a circle’s circumference to its diameter
frexp(x: float) → Tuple[int, int]¶
Decomposes a floating-point number into its mantissa and exponent. The returned value is the tuple
(m, e)such that
x == m * 2**eexactly. If
x == 0then the function returns
(0.0, 0), otherwise the relation
0.5 <= abs(m) < 1holds.
modf(x: float) → Tuple[float, float]¶
Return a tuple of two floats, being the fractional and integral parts of
x. Both return values have the same sign as