NAN 3CW "09 March 2006" "mathcw-1.00"

Table of contents


NAME

nanf, nan, nanl, nanw, nanq, nanll, nandf, nand, nandl, nandll - quiet NaN function

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern float nanf (const char *tag);

extern double nan (const char *tag);

extern long double nanl (const char *tag);

extern __float80 nanw (const char *tag);

extern __float128 nanq (const char *tag);

extern long_long_double nanll (const char *tag);

extern decimal_float nandf (const char *tag);

extern decimal_double nand (const char *tag);

extern decimal_long_double nandl (const char *tag);

extern decimal_long_long_double nandll (const char *tag);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute a quiet NaN, setting its content according to the string pointed to by the argument.

If the argument string is empty, or is a NULL pointer, an internal counter is incremented on each call and installed in the low-order significand bits.


RETURN VALUES

Return a freshly-computed quiet NaN, or zero if quiet NaNs are not supported.

ERRORS

In IEEE 754 and 854 arithmetic, the invalid exception flag is always set, but errno is never set.

SEE ALSO

isnan(3CW), isqnan(3CW), issnan(3CW), qnan(3CW), snan(3CW).