HPlogo HP-UX Reference > F

finite(3M)

HP Integrity Server Only
HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

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 facilitate 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.

STANDARDS CONFORMANCE

These functions are not specified by any current standard.