ISINF(3)                  OpenBSD Programmer's Manual                 ISINF(3)

NAME
     isinf, isinff, isnan, isnanf - test for infinity or not-a-number

SYNOPSIS
     #include <math.h>

     int
     isinf(double n);

     int
     isinff(float n);

     int
     isnan(double n);

     int
     isnanf(float n);

DESCRIPTION
     The isinf() function returns 1 if the number n is Infinity, otherwise 0.
     The isinff() function is a single precision version of isinf().

     The isnan() function returns 1 if the number n is ``not-a-number'', oth-
     erwise 0.  The isnanf() function is a single precision version of
     isnan().

SEE ALSO
     math(3)

     IEEE Standard for Binary Floating-Point Arithmetic, Std 754-1985, ANSI.

BUGS
     VAX floating point does not have distinguished values for either infinity
     or not-a-number.  These routines always return 0 on that architecture.

OpenBSD 4.0                    January 29, 1994                              1
