TorchLean API

FloatLib.Floats.Formats.P3109.Arithmetic.Queries.Classification

Exact meanings of P3109 value queries #

The executable predicates are connected to the exact decoder rather than to an approximate host conversion. The statements apply to every valid descriptor, including precision one.

The raw natural-number decoder and the public decoder have the same exact observation.

isFinite is true iff exact decoding produces a finite dyadic.

isInfinite is true iff exact decoding produces a signed infinity.

Testing for one agrees with equality of the exact rational observation to one.

Removing the sign partition gives the exact absolute value of every finite datum.

Normality is an exact absolute-value bound at the first normal magnitude code.

Subnormality is an exact nonzero absolute-value bound below the first normal value.

The zero code is the only datum whose exact rational observation is zero.

isSignMinus agrees with strict comparison against zero, under which NaN is unordered.