TorchLean API

FloatLib.Floats.Formats.DecimalInterchange.Conversion.Binary.FromProof

Binary-to-decimal conversion guarantees #

Finite decoding feeds one exact rational projection. The proofs transfer its error bounds, directed inequalities and exception conditions to the returned decimal datum. Neither the binary storage width nor the decimal encoding choice occurs in the numerical argument.

A successfully decoded binary value is projected once, with preferred quantum zero.

Binary conversion always returns a valid destination datum.

A source NaN is quieted, preserves a fitting diagnostic payload, and reports signaling.

An infinite source retains its sign and raises no exception.

Both binary zeros retain their sign, with preferred quantum zero clamped to the destination quantum range.

When quantum zero is available, both binary zeros convert to it with the same sign.

Both nearest conversions bound the error of the returned decimal value by half a grid unit.

All five conversion directions have less than one grid unit of nonoverflowing error.

Downward conversion bounds the exact binary input from below.

A cohort change is not inexact; inexactness detects precisely a numerical change.

Decimal conversion signals underflow precisely for an inexact tiny input.