Configured unsigned integer semantics #
The codec preserves the model's numerical guarantees: exact unsigned decoding after accepted rounding, a half-unit error bound, even halfway results, and the MSB-only sentinel rule including its collision with a valid unsigned integer.
Decoding the configured conversion recovers the model result through any lawful codec.
Storage choice does not change unsigned rounding or sentinel delivery.
The MSB-only input becomes NaR through every lawful storage codec.
Outside the reserved MSB-only word, conversion rounds the unsigned natural value by the posit rounding rule.
NaR converts to the MSB-only output sentinel.
Accepted output bits denote the exact rounded integer, without modular wraparound.
A finite input whose rounded integer is outside the unsigned range delivers the sentinel.
For finite inputs, the sentinel bits denote either a rejected rounded integer or the
successful value 2 ^ (width - 1). These cases cannot be distinguished from the bits alone.
An accepted unsigned conversion differs from the exact posit value by at most half a unit.
An accepted halfway input rounds to an even unsigned integer, including a negative halfway input whose rounded result is zero.