TorchLean API

FloatLib.Floats.Formats.Posit.Configured.Instances

Comparison, display, and literal instances for configured posits #

Numerical literals are rounded once from exact rationals. Display and comparison operate on the exact-width model independently of the selected packed carrier.

@[instance_reducible]

Configured posits print their mathematical value rather than their packed carrier.

@[instance_reducible]

Configured posit comparison follows the standard's total signed-word order.

NaR compares below every real posit because the standard compares complete words as signed two's-complement integers; this does not give NaR a real or infinite numerical meaning.

@[instance_reducible]

Natural literals are rounded once from their exact value into the destination posit.

@[instance_reducible]

Decimal literals are rounded once from an exact rational, never through a host float.

@[instance_reducible]

Posit negation is whole-word two's complement and fixes zero and NaR.