Module decimal_seq

Source
🔬This is a nightly-only experimental API. (dec2flt)
Expand description

Arbitrary-precision decimal type used by fallback algorithms.

This is only used if the fast-path (native floats) and the Eisel-Lemire algorithm are unable to unambiguously determine the float.

The technique used is “Simple Decimal Conversion”, developed by Nigel Tao and Ken Thompson. A detailed description of the algorithm can be found in “ParseNumberF64 by Simple Decimal Conversion”, available online: https://nigeltao.github.io/blog/2020/parse-number-f64-simple.html.

Structs§

DecimalSeqExperimental
A decimal floating-point number, represented as a sequence of decimal digits.

Functions§

number_of_digits_decimal_left_shift đź”’ Experimental
parse_decimal_seqExperimental
Parse a big integer representation of the float as a decimal.