Skip to main content

decompose-floating-point

lq.decompose-floating-point(value)

Decomposes a floating point number into the scientific notation. x=a10nx = a\cdot 10^n where a[0.1,1)a \in [0.1, 1) and nZn \in \mathbb{Z}. Returns an array (a, n).

Parameters

value : float

Number to decompose.