Manual Reference Pages  - ISINF (3)

NAME

isinf, isnan, finite - test for infinity or not-a-number (NaN)

CONTENTS

Synopsis
Description
Note

SYNOPSIS


#include <math.h> 

int isinf(double value);

int isnan(double value);

int finite(double value);

DESCRIPTION

The isinf() function returns -1 if value represents negative infinity, 1 if value represents positive infinity, and 0 otherwise.

The isnan() function returns a non-zero value if value is "not-a-number" (NaN), and 0 otherwise.

The finite() function returns a non-zero value if value is neither infinite nor a "not-a-number" (NaN) value, and 0 otherwise.

NOTE

C99 provides additional macros, such as the type-independent fpclassify(), isinf() and isnan().

CONFORMING TO

BSD 4.3

SEE ALSO

fpclassify(3)
Jump to page    or go to Top of page |  Section 3 |  Main Index.


ISINF (3) 2002-07-27
Generated by manServer 1.07 from /usr/share/man/man3/../man3/isinf.3.gz using man macros.