MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions                           isnand(3C)



NAME
     isnand, isnanf, finite, fpclass, unordered - determine  type
     of floating-point number

SYNOPSIS
     #include 

     int isnand(double dsrc);


     int isnanf(float fsrc);


     int finite(double dsrc);


     fpclasst fpclass(double dsrc);


     int unordered(double dsrc1, double dsrc2);


DESCRIPTION
     The isnand() and isnanf() functions return TRUE (1)  if  the
     argument dsrc or fsrc is a NaN;  otherwise they return FALSE
     (0).


     The fpclass() function returns one of the following  classes
     to which dsrc belongs:

     FPSNAN       signaling NaN


     FPQNAN       quiet NaN


     FPNINF       negative infinity


     FPINF       positive infinity


     FPNDENORM    negative denormalized non-zero


     FPDENORM    positive denormalized non-zero


     FPNZERO      negative zero





SunOS 5.11          Last change: 15 Jun 2004                    1






Standard C Library Functions                           isnand(3C)



     FPZERO      positive zero


     FPNORM      negative normalized non-zero


     FPNORM      positive normalized non-zero



     The finite() function returns TRUE (1) if the argument  dsrc
     is  neither  infinity  nor  NaN; otherwise it returns  FALSE
     (0).


     The unordered() function returns TRUE (1) if one of its  two
     arguments  is  unordered with respect to the other argument.
     This is equivalent to reporting whether either  argument  is
     NaN.  If neither argument is NaN, FALSE (0) is returned.


     None of these functions generates  an  exception,  even  for
     signaling NaNs.

RETURN VALUES
     See DESCRIPTION.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     fpgetround(3C), isnan(3M), attributes(5)













SunOS 5.11          Last change: 15 Jun 2004                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™