P3109 queries and adjacent values #
Format queries expose the descriptor and its distinguished encoded values. Classification and
adjacent-value operations inspect codes directly, so their cost does not depend on the decoded
exponent. maxSubnormalOf returns NaN at precision one. nextGreaterThan maps positive infinity
to NaN, and nextLessThan maps negative infinity to NaN: these are deliberately different from
IEEE nextUp and nextDown.
Reference: P3109 unapproved interim report 4.0.3, revision 34f5964, §§4.13–4.16.
Total encoded width, as queried by §4.14.
Instances For
Precision including the implicit leading bit.
Instances For
Whether negative finite values are represented.
Instances For
Whether infinities are represented.
Instances For
Width of the biased exponent.
Instances For
Width of the trailing significand field.
Instances For
Bias subtracted from nonzero encoded exponents.
Instances For
Largest finite value as a value of the queried format.
Instances For
Smallest finite value; unsigned formats return zero.
Instances For
Least strictly positive value.
Instances For
Largest positive subnormal, or NaN when precision one leaves no subnormal values.
Instances For
Least positive normal value.
Instances For
The format's unique zero has code zero.
Instances For
Test the unique NaN code.
Instances For
Test either infinity, respecting signedness and the finite/extended domain.
Instances For
Finite excludes NaN and either infinity.
Instances For
Negative finite values and negative infinity have negative sign; NaN and zero do not.
Instances For
Unsigned magnitude code, removing the sign partition in signed formats.
Instances For
Test exact numerical equality to one without constructing a large rational.
Instances For
Normal values are finite and have a nonzero biased exponent in their magnitude code.
Instances For
Nonzero finite values below the normal range.
Instances For
Least greater value, or NaN when there is no greater datum.
Instances For
Greatest lesser value, or NaN when there is no lesser datum.