NAN(3)



Name

     A_Signaling_dNaN, A_Quiet_dNaN, dInfinity, A_Signaling_fNaN,
     A_Quiet_fNaN, fInfinity - return NaN or Infinity


Library

     (CM)/lib/(MACH_)/libM.a


Syntax

     #include (CM)/include/soi_NaN.h

     double A_Signaling_dNaN ()
     double A_Quiet_dNaN ()
     double dInfinity ()
     float A_Signaling_fNaN ();
     float A_Quiet_fNaN ();
     float fInfinity ()


Description

     These functions return specific single-precision or  double-
     precision  floating-point  values  representing signaling or
     quiet (non-signaling) NaN's (Not  a  Number),  or  Infinity.
     The  specific  values  returned for NaN's will have the low-
     order  16  bits  (single-precision)  or  48  bits   (double-
     precision) of the fraction clear and all other fraction bits
     except possibly the signaling bit set.

     The values returned on an IEEE machine conform to the defin-
     itions  of  NaN and Infinity in the IEEE Standard for Binary
     Floating-Point Arithmetic, ANSI/IEEE Std 754-1985.   If  the
     machine  uses VAX representation for floating point numbers,
     the value returned has the same pattern as the corresponding
     single-precision  IEEE  NaN  or Infinity, with zeroes in the
     low order part of double-precision fractions,  and  conforms
     to  the definitions for NaN's and Infinity in SOI-DRAC Docu-
     ment #1990-04-01.  The sign bit is always 0.


Author

     Rick Bogart


See Also

     isNaN(3L)


HISTORY

     1993-09-17
     1994-02-08
     SOI Version 0.8