nanl函数
概要:
#include <math.h> long double nanl(const char *tagp);
描述:
该函数根据以下规则转换参数tagp指向的字符串:
调用函数nanl("n-char-sequence")等价于调用函数strtold("NAN(n-char-sequence)", (char**)NULL);调用函数nanl("")等价于调用函数strtold("NAN()", (char**)NULL)。
如果参数tagp未指向n-char-sequence序列或者空字符串,调用该函数等价于调用函数strtold("NAN", (char**)NULL)。
参数:
const char *tagp
参数为一个指向n-char-sequence序列或者空字符串的指针。
返回值:
函数返回一个安静非数值(如果可用),其内容通过参数tagp确定。
如果实现不支持安静非数值,函数返回0。
相关内容:
nan | double类型的生成安静非数值的函数。 |
nanf | float类型的生成安静非数值的函数。 |