nan, nanf, nanl
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <math.h> 中定义
|
||
| float nanf( const char* arg ); |
||
| double nan( const char* arg ); |
||
| long double nanl( const char* arg ); |
||
实现定义的字符串
arg转换成相应的安静的NaN值。的呼叫std::nan("string")是相当于呼叫std::strtod("NAN(string)", (char**)NULL);.[编辑] 参数
| arg | - | 窄确定的内容是NaN,或一个空字符串的字符串
原文: narrow character string identifying the contents of a NaN, or an empty string |
[编辑] 返回值
NaN值对应的标识字符串
arg或零,如果implemntation不支持无提示NaN. 原文:
The NaN value that corresponds to the identifying string
arg or zero if the implemntation does not support quiet NaNs. [编辑] 另请参阅
| (C99) |
检查,如果给定的数字为NaN (函数) |
| C++ documentation for nan
| |