isnan函数 c语言
C ++ isnan()函数 (C++ isnan() function)
isnan() function is a library function of cmath header, it is used to check whether the given value is a NaN (Not-A-Number). It accepts a value (float, double or long double) and returns 1 if the given value is NaN; 0, otherwise.
isnan()函数是cmath标头的库函数,用于检查给定的值是否为NaN(非数字)。 它接受一个值( float , double或long double ),如果给定值为NaN,则返回1;否则,返回1。 0,否则。
Syntax of isnan() function:
isnan()函数的语法:
In C99, it has been implemented as a macro,
在C99中,它已实现为宏,
macro