🔬This is a nightly-only experimental API. (
dec2flt
)Expand description
Implementation of the Eisel-Lemire algorithm.
Functions
- compute_floatExperimentalCompute w * 10^q using an extended-precision float representation.
- Calculate a base 2 exponent from a decimal exponent. This uses a pre-computed integer approximation for log2(10), where 217706 / 2^16 is accurate for the entire range of non-finite decimal exponents.