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

nite(3) OSS Library Calls Reference Manual
NAME
finite - Tests whether a floating-point number is infinite
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRESRL
G-series native OSS processes: /G/system/sysnn/zcresrl
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 <ieeefp.h>
int finite(
double x);
PARAMETERS
x Specifies a double-precision IEEE floating-point value.
DESCRIPTION
The finite( ) function returns an indication of whether a floating-point value is a finite number.
This function is recommended by the IEEE Std 754-1985 for floating-point arithmetic.
NOTES
The finite( ) function can be called only by native processes.
This function is not available for Tandem floating-point data.
RETURN VALUES
The finite( ) function returns TRUE if the value of x is greater than negative infinity and less than
positive infinity. Otherwise, the value FALSE is returned.
ERRORS
No errors can be returned. This function does not set errno.
RELATED INFORMATION
Functions: fp_class(3), nextafter(3).
STANDARDS CONFORMANCE
This function conforms to the XPG4 Version 2 specification.
274 Hewlett-Packard Company 527187-017