Mathematical order and extrema for P3109 #
Finite extrema agree with the rational field's minimum and maximum. Comparisons agree with
rational order, while NaN stays unordered. Magnitude ties and the preference for finite values
are stated apart from rounding. The executable extrema use the same binary refinement
as arithmetic, so these identities describe the expression at their single projection boundary.
Clamping rejects reversed bounds and agrees with the rational interval clamp for ordered bounds.
Finite strict comparison is rational strict order.
Finite non-strict comparison is rational order.
Finite comparison equality is equality of rational values.
No datum is strictly less than itself, even NaN.
Finite minimum is the ordinary rational minimum.
Finite maximum is the ordinary rational maximum.
Exact closed minimum is commutative, including NaN and infinity.
Exact closed maximum is commutative, including NaN and infinity.
A finite operand wins over either infinity in minimum-finite.
A finite operand wins over either infinity in maximum-finite.
The number variant ignores NaN in favor of a finite operand.
The number variant ignores NaN in favor of a finite operand.
Equal nonnegative magnitudes are resolved toward the negative datum by minimum.
Equal nonnegative magnitudes are resolved toward the positive datum by maximum.
Reversed clamp bounds have the report's indeterminate NaN result.
Clamping a finite value between ordered finite bounds gives the rational interval clamp.
Clamp encoding refines the exact closed clamp followed by one report projection.