Decimal character conversion #
Finite text uses the shared exact decimal scanner. The coefficient and quantum
are kept separately until one destination rounding, with the written quantum as
the preferred exponent. Exact output uses coefficient/exponent notation:
120e-2 and 12e-1 have equal values but preserve different representations.
This binding accepts ASCII decimal syntax without whitespace, and case-insensitive
Inf, Infinity, NaN, and sNaN, with an optional sign. NaN names may have
decimal payload digits. Output preserves NaN sign, signaling state, and payload;
reading an sNaN spelling creates a signaling NaN without raising invalid.
Malformed text or an unrepresentable NaN payload produces positive quiet NaN
with payload zero and the invalid flag. Finite conversion uses all five rounding
modes and the projection layer's tininess-before-rounding policy.
Exact character decoding, including the written quantum and the sign of zero.
Instances For
The default result for a syntax error or an oversized diagnostic payload.
Instances For
Round a decoded datum into a destination format. Special spellings do not perform arithmetic.
Instances For
Convert a complete string, reporting IEEE status flags for finite rounding and invalid text.
Instances For
An exact spelling preserves every component of a datum, including zero's quantum.
Instances For
Exact coefficient/quantum output; no rounding or floating-point exceptions occur.