Cohort-aware rational projection #
Precision rounding precedes the overflow test (IEEE 754-2019 §7.4). Decimal
tininess is detected before rounding (§7.5), and the underflow flag requires
both tininess and inexactness. Exact results select the cohort member closest
to the preferred quantum (§5.2).
The magnitude interface requires a nonnegative input; project handles either
sign and receives the sign of an exact zero separately.
The shared IEEE exception indicators, also used by binary arithmetic.
Instances For
Instances For
Instances For
Least positive normal value, independent of the chosen cohort.
Instances For
Greatest finite magnitude and its largest-quantum representation.
Instances For
Precision-rounded coefficient and exponent with an unbounded upper exponent.
The only possible carry is exactly 10 ^ precision.
Instances For
Whether overflow delivers an infinity rather than the greatest finite value.
Instances For
Project a nonnegative rational magnitude, retaining the supplied sign even at zero. Exact zero selects its cohort directly, without allocating powers for rounding or tininess.
Instances For
Round an exact rational value with an operation's preferred quantum.
negativeZero is consulted only when the exact input equals zero.