Exact values represented by binary models #
Model.ExactValue records the complete interpretation of an executable bit pattern without
introducing another floating-point carrier. Finite values retain their exact dyadic decoding, so
positive and negative zero remain distinct when the format represents both. Infinities retain
their sign, and NaNs retain their sign, signaling class, and fraction payload.
Complete exact interpretation of a Model bit pattern.
- finite
(value : Numerics.Dyadic)
: ExactValue
A finite exact dyadic, including the sign of zero.
- infinity
(sign : Bool)
: ExactValue
A signed infinity.
- nan
(sign signaling : Bool)
(payload : ℕ)
: ExactValue
A NaN with its sign, signaling class, and complete fraction field.
Instances For
Instances For
Instances For
Decode an executable bit pattern to its complete exact value.
This function is computational. It refines the real-valued numerical interpretation by retaining
the distinctions that ℝ necessarily forgets.
Instances For
A successful dyadic decoding determines the exact finite value.
Exact finiteness is equivalent to successful decoding with the indexed dyadic.