std::nan, std::nanf, std::nanl
From cppreference.com
Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<cmath>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >float nanf( const char* arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >double nan( const char* arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >long double nanl( const char* arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Converts the implementation-defined character string arg
into the corresponding quiet NaN value. The call std::nan("string") is equivalent to the call std::strtod("NAN(string)", (char**)NULL);.
Parameters
arg | - | narrow character string identifying the contents of a NaN, or an empty string |
Return value
The NaN value that corresponds to the identifying string arg
or zero if the implementation does not support quiet NaNs.
See also
[static] |
returns a quiet NaN value of the given floating-point type (public static member function of std::numeric_limits<T> )
|
C documentation for nanf, nan, nanl
|