Exact real semantics of scaled natural rationals #
Scaled natural rationals provide the exact algebraic representation used by directed rational
rounding. A rational is represented by natural numerator and denominator together with an
external binary exponent. The shared exact Numerics.RationalBinary.scaleByPowerOfTwo operation
moves that exponent into one side of the quotient; the main theorem proves that this
transformation preserves the exact real value.
Exact nonnegative real value represented by a scaled natural rational.
Instances For
The signed scaled rational formed from two dyadics is their exact real quotient.
The equality also covers a zero denominator because division in ℝ is totalized at zero.
Moving a binary exponent into the numerator or denominator preserves the represented real ratio.
The unsigned scaled rational is nonnegative.
The unsigned scaled rational is positive when both natural components are nonzero.
Combining two external binary scales adds their exponents.