Integral result, preferred quantum, and status guarantees #
When the format's maximum quantum is nonnegative, every valid finite input produces a finite integer at the specified preferred quantum, with no intermediate precision loss or range exception. This includes all three standard presets. The general invalid characterization also covers custom layouts with a negative maximum quantum.
The successful output explicitly retains the sign and preferred quantum, including zero.
For a valid finite input, invalid occurs exactly when the preferred integral quantum cannot be represented. The coefficient bound never causes this failure.
A valid finite input rounds to an integer when the maximum quantum is nonnegative.
A valid finite input raises no range, domain, or divide-by-zero exception when the maximum quantum is nonnegative.
Explicit-direction integral rounding suppresses inexact, including for a nonintegral input.
Exact integral rounding signals inexact precisely for a numerical change.
Already nonnegative quantum exponents are preserved, including trailing coefficient zeros.
Both nearest integral modes differ from the input by at most one half, independent of its cohort.
The two integral variants have exactly the same numerical datum.