description | title | ms.date | api_name | api_location | api_type | topic_type | f1_keywords | helpviewer_keywords | ms.assetid | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: nan, nanf, nanl |
nan, nanf, nanl |
4/2/2020 |
|
|
|
|
|
|
790e9158-80ab-43e0-8f5a-096198553fd9 |
Returns a quiet NaN value.
double nan( const char* input );
float nanf( const char* input );
long double nanl( const char* input );
input
A string value.
The nan
functions return a quiet NaN value.
The nan
functions return a floating-point value that corresponds to a quiet (non-signalling) NaN. The input
value is ignored. For information about how a NaN is represented for output, see printf
, _printf_l
, wprintf
, _wprintf_l
.
By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.
Function | C header | C++ header |
---|---|---|
nan , nanf , nanl |
<math.h> | <cmath> or <math.h> |
Math and floating-point support
fpclassify
_fpclass
, _fpclassf
isfinite
, _finite
, _finitef
isinf
isnan
, _isnan
, _isnanf
isnormal