Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

fpclassify(3) OSS Library Calls Reference Manual
NAME
fpclassify - Classifies a floating-point value
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <math.h>
int fpclassify(
floating-type x);
PARAMETERS
floating-type Specifies the floating-type of x.
x Specifies a value of type floating-type.
DESCRIPTION
The fpclassify( ) macro classifies its argument as NaN, infinite, normalized, denormalized, or
zero. The argument must be of floating type, and classification is based on the type of the argu-
ment.
NOTES
This macro is implemented only for the IEEE_float floating-point option. Applications using
this macro cannot be compiled if the specified floating-point option is Tandem_float.
RETURN VALUES
The fpclassify( ) macro returns the value of the number classification macro appropriate to the
type and value of its argument.
The value returned is one of the following macros, which are defined in math.h:
FP_INFINITE
Infinity.
FP_NAN NaN.
FP_NORMAL Normalized.
FP_SUBNORMAL
Denormalized.
FP_ZERO Zero.
ERRORS
No errors are defined.
RELATED INFORMATION
Functions: isfinite(3), isinf(3), isnan(3), isnormal(3), signbit(3).
Files: math(4).
STANDARDS CONFORMANCE
This function conforms to the ISO/IEC 9899:1999 standard.
This function conforms to the IEEE Std 1003.1, 2004 Edition.
2128 Hewlett-Packard Company 527187-017