TorchLean API

FloatLib.Floats.Formats.DecimalInterchange.DatumProof

Cohort identities, including signed zero and decimal rescaling #

Moving a trailing decimal zero into the quantum exponent preserves the cohort. Zero's cohort depends on its sign but not its quantum; infinities have singleton cohorts, and NaNs belong to no cohort.

Moving a trailing decimal zero into the quantum exponent preserves the cohort. Representability at a particular width is a separate condition on each datum.

Zero's quantum exponent does not change its cohort, but its sign does.

Equal finite cohorts have equal exact rational values. The converse also needs the sign of zero, which the rational value alone cannot retain.

Each infinity has exactly one datum in its cohort.

Cohorts contain floating-point numbers, which exclude NaNs (IEEE 754-2019 §2.1).