Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
Guardian Native C Library Calls (f)
finite(3)
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 native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
H-series OSS processes: /G/system/zdllnnn/zcredll
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.
527192-007 Hewlett-Packard Company 2−25