TorchLean API

FloatLib.Floats.Formats.P3109.Arithmetic.External.Rounding

Report precision rounding for external binary formats #

The external adapter uses its own declared precision and bias in the report formula. Its precision is always greater than one, so lower-code parity is integer significand parity. The rational selection theorem covers every deterministic mode and every supplied stochastic word. These statements concern precision rounding; saturation and encoding are treated separately.

Reference: P3109 unapproved interim report 4.0.3, revision 34f5964, §§4.7.4 and 4.8.

External binary descriptors always have precision greater than one.

External code parity is the ordinary parity of the integer significand.

The selected external quantum uses the declared bias, including custom exponent biases.

External precision rounding implements the report formula for every mode and rational input.

External nearest-even precision rounding stays within half its own quantum.

Every external mode stays within its own quantum, including each stochastic word.

External upward rounding brackets the input from above before saturation.

External downward rounding brackets the input from below before saturation.