TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Operations.TotalOrder.Sign

Exact absolute values and encoded sign operations #

The sign and quiet-NaN bits occupy distinct positions for every binary descriptor. Consequently encoded absolute value preserves signaling status and payload. In a signed-zero format it also clears the sign of every value, giving the exact-value bridge used by magnitude ordering. Unsigned-zero formats preserve their reserved NaN word under encoded absolute value. The bridge therefore requires a format that supports signed zero.

In a signed-zero format, encoded absolute value clears exactly the decoded dyadic sign.

Exact interpretation commutes with absolute value whenever every sign can be cleared.