Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (n - r) nanf(3)
NAME
nanf - Returns a float 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>
float nan(
const char *tagp);
PARAMETERS
tagp Specifies the string.
DESCRIPTION
The nanf( ) function is a float version of the nan( ) function; it returns a float result.
The nanf( ) 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
strtof("NAN", (char **) NULL).
NOTES
This function is implemented only for the IEEE_float floating-point option. Applications using
this function cannot be compiled if the specified floating-point option is Tandem_float.
RETURN VALUES
The nanf( ) function returns a quiet NaN, with content indicated through tagp.
ERRORS
No errors are defined.
RELATED INFORMATION
Functions: nan(3), nanl(3), strtof(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.
527187-017 Hewlett-Packard Company 5−3