Basic posit functions on the public configured carrier #
Every function uses the universal carrier/model codec. Static storage selection therefore does
not alter numerical behavior, while users retain one ExecFloat.Posit (bits := n) type.
The public functions lift the corresponding model operations. The codec inverse laws ensure that decoding a result recovers the model result.
Lexicographic successor of the posit representation, with wrapping.
Instances For
Lexicographic predecessor of the posit representation, with wrapping.
Instances For
Standard posit absolute value.
Instances For
Standard posit sign function, returning NaR when the input is NaR.
Instances For
Standard nearest integer-valued posit, with ties to an even integer.
Instances For
Standard ceiling to an integer-valued posit.
Instances For
Standard floor to an integer-valued posit.
Instances For
Taking the predecessor after the representation successor restores the original posit.
Taking the successor after the representation predecessor restores the original posit.
Posit absolute value fixes the unique zero encoding.
Posit absolute value propagates Not-a-Real.
The posit sign function fixes the unique zero encoding.
The posit sign function propagates Not-a-Real.
Nearest-integer rounding fixes the unique posit zero.
Nearest-integer rounding propagates posit Not-a-Real.
Posit ceiling fixes the unique zero encoding.
Posit ceiling propagates Not-a-Real.
Posit floor fixes the unique zero encoding.
Posit floor propagates Not-a-Real.