Refinement of configured posit integer conversions #
Both adapters refine the model conversions for arbitrary positive integer widths and lawful posit codecs. The semantic theorems expose the exact once-rounded integer input and nearest-even integer output, including the signed-minimum sentinel collision.
Packing the integer conversion preserves the model result exactly.
Converting a configured posit to an integer is conversion of its exact model value.
The reserved integer word becomes the posit NaR encoding through every lawful codec.
Non-sentinel integer inputs receive exactly one posit rounding of their signed values.
A configured NaR observation converts to the MSB-only integer sentinel.
An in-range configured conversion decodes to the exact nearest-even integer.
Out-of-range rounded integers produce the sentinel through every configured carrier.
Finite sentinel output includes both overflow and a rounded result at the signed minimum.
The absolute conversion error is at most one half when the rounded integer fits.
Exact halfway values convert to even integers, provided their rounded values fit.