Deterministic rational precision-rounding guarantees #
These results derive direction, error bounds, and tie selection from the proved rational formula. They hold before saturation, whose overflow behavior is deliberately separate. The common quantum-level results apply to both P3109 descriptors and external binary formats.
Every mode selects one of the adjacent integer candidates.
Exact integers are preserved for every mode, including every stochastic word.
Every selected integer is less than one unit from the input, even for stochastic modes.
Truncation is the lower integer candidate.
Rounding up in magnitude brackets a nonnegative input within one integer unit.
On a halfway input, nearest-even selects the lower candidate when parity ⌊scaled⌋₊ is true,
and the upper candidate otherwise.
With significand parity, the selected halfway candidate is an even integer.
With significand parity, inexact round-to-odd selects an odd integer.
The scaled magnitude is nonnegative at every quantum.
Restoring the quantum recovers the exact input magnitude.
Error in the scaled integer is converted to value error by the positive quantum.
Every mode stays within one quantum before saturation, for every supplied stochastic word.
Nearest-even rounding has error at most half the chosen quantum, including precision one.
Truncation reduces magnitude by less than one quantum.
Directed rounding toward positive infinity brackets the input from above.
Directed rounding toward negative infinity brackets the input from below.
The halfway value is resolved by code parity, with the original sign restored.
All rational modes, including each stochastic word, stay within one precision quantum.
Rational rounding toward positive infinity lies above the exact input.
Rational rounding toward negative infinity lies below the exact input.
Rational nearest-away precision rounding satisfies the half-quantum bound.
Rational nearest-even precision rounding satisfies the half-quantum bound.
Rational halfway selection uses the report's code parity, including precision one.