Ordered numerical semantics and exception guarantees of decimal comparisons #
Decimal comparison agrees with exact extended-rational order, treats either NaN as unordered,
and respects cohorts. Quiet predicates raise invalid exactly for signaling NaNs; signaling
predicates raise it for any NaN.
A less-than result means strict order in the exact extended rationals.
Equality compares exact numerical values, rather than stored cohorts.
Every finite comparison agrees with exact signed rational comparison.
Replacing either operand by a member of its cohort preserves comparison.
Complete truth-set specification, stated in terms of exact ordered values and unordered NaN operands. Together with the status theorems this covers all 22 named comparison entry points.
Comparison never raises numerical range, division, or inexact exceptions.