Are there functions in the Python library or numpy that take a float as input and return its decimal scientific notation decomposition, i.e. mantissa and exponent? Or is the
I'm hoping there's a better answer but I came up with
from math import floor, log10 def fexp(f): return int(floor(log10(abs(f)))) if f != 0 else 0 def fman(f): return f/10**fexp(f)