HP-UX Reference (11i v2 07/12) - 3 Library Functions A-M (vol 6)
f
finite(3M) finite(3M)
(HP Integrity Server Only)
NAME
finite(), finitef(), finitel(), finitew(), finiteq() - finiteness functions
SYNOPSIS
#include <math.h>
int finite(double
x);
int finitef(float
x);
int finitel(long double
x);
int finitew(extended
x);
int finiteq(quad
x);
DESCRIPTION
The finite() function determines whether its argument has a finite value (zero, subnormal, or normal,
and not infinite or NaN).
These functions are superseded by the standard isfinite macro. They are provided in HP-UX to facili-
tate importing code from other platform.
finitef() is a float version of finite() ; it takes a float argument.
finitel() is a long double version of finite(); it takes a long double argument.
finitew() is an extended version of finite(); it takes an extended argument.
finiteq() is equivalent to finitel() on HP-UX systems.
USAGE
To use these functions, compile either with the default -Ae option or with the -Aa
and
-D_HPUX_SOURCE options.
To use
finitew() or finiteq() , compile also with the -fpwidetypes option.
Make sure your program includes <math.h>. Link in the math library by specifying -lm on the compiler
or linker command line.
For more information, see the HP-UX floating-point guide for HP Integrity servers at the following site:
http://www.hp.com/go/fp
.
RETURN VALUE
finite() returns a nonzero value if and only if its argument has a finite value.
ERRORS
No errors are defined.
SEE ALSO
fpclassify(3M) isfinite(3M), isinf(3M), isnan(3M), isnormal(3M), signbit(3M), math(5).
STANDARDS CONFORMANCE
These functions are not specified by any current standard.
HP-UX 11i Version 2: December 2007 Update − 1 − Hewlett-Packard Company 427