[Contents] [Previous Section] [Next Section] [Index]


fp_class-Classifies IEEE Floating-Point Values

Interface

int fp_class (F_TYPE x)

Description

These routines determine the class of IEEE floating-point values. They return one of the constants in the file and never cause an exception, even for signaling NaNs. These routines implement the recommended function class(x) in the appendix of the IEEE Std 754. The constants in refer to the following classes of values:
Constant              Class

FP_SNAN               Signaling NaN (Not-a-Number)

FP_QNAN               Quiet NaN (Not-a-Number)

FP_POS_INF            +Infinity

FP_NEG_INF            -Infinity

FP_POS_NORM           Positive normalized

FP_NEG_NORM           Negative normalized

FP_POS_DENORM         Positive denormalized

FP_NEG_DENORM         Negative denormalized

FP_POS_ZERO           +0.0 (positive zero)

FP_NEG_ZERO           -0.0 (negative zero)



Exceptions

None.

See Also

ANSI/IEEE Std 754-1985, IEEE Standard for Binary Floating-Point Arithmetic


[Contents] [Previous Section] [Next Section] [Index]