Manpage of ISNAN

Google
Web www.fiveanddime.net

ISNAN

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

1.19 `isnan',`isnanf',`isinf',`isinff',`finite',`finitef'--test for exceptional numbers

 

SYNOPSIS


     #include <ieeefp.h>
     int isnan(double ARG);
     int isinf(double ARG);
     int finite(double ARG);
     int isnanf(float ARG);
     int isinff(float ARG);
     int finitef(float ARG);  

DESCRIPTION

These functions provide information on the floating-point argument supplied.


   There are five major number formats - `zero'
     a number which contains all zero bits.

`subnormal'
     Is used to represent  number with a zero exponent, but a nonzero
     fraction.

`normal'
     A number with an exponent, and a fraction

`infinity'
     A number with an all 1's exponent and a zero fraction.

`NAN'
     A number with an all 1's exponent and a nonzero fraction.


   `isnan' returns 1 if the argument is a nan. `isinf' returns 1 if the argument is infinity. `finite' returns 1 if the argument is zero, subnormal or normal. The `isnanf', `isinff' and `finitef' perform the same operations as their `isnan', `isinf' and `finite' counterparts, but on single-precision floating-point numbers.

 

SEE ALSO

isnan is part of the libm library. The full documentation for libm is maintained as a Texinfo manual. If info and libm are properly installed at your site, the command
info libm

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:18 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net