Return the mantissa and exponent of x, as pair (m, e). If x is a finite nonzero number, then m is a float with 0.5 <= abs(m) < 1.0 and an integer e is such that x == m * 2**e exactly. Else, return (x, 0).
math/frexp
frexp