Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

nan(3) OSS Library Calls Reference Manual
NAME
nan - Returns quiet Nan for specified string
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <math.h>
double nan(
const char *tagp);
PARAMETERS
tagp Specifies the string.
DESCRIPTION
The nan( ) function returns a quiet NaN from the specified string. If tagp does not point to an n-
char-sequence or an empty string, nan( ) is equivalent to
strtod("NAN", (char **) NULL).
NOTES
This function is implemented only for the IEEE_float oating-point option. Applications using
this function cannot be compiled if the specified floating-point option is Tandem_float.
RETURN VALUES
The nan( ) function returns a quiet NaN, with content indicated through tagp.
ERRORS
No errors are defined.
RELATED INFORMATION
Functions: nanf(3), nanl(3), strtod(3).
Files: math(4).
STANDARDS CONFORMANCE
This function conforms to the ISO/IEC 9899:1999 standard.
This function conforms to the IEEE Std 1003.1, 2004 Edition.
52 Hewlett-Packard Company 527187-017