Skip to main content

decompose-floating-point

lq.decompose-floating-point(value)(source)

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

Parameters

value : float​

Number to decompose.