nfloat.IsNaN(nfloat) 方法

定义

返回一个值,该值指示指定的值是否不为数字 (NaN)。

public static bool IsNaN (nfloat f);
static member IsNaN : nfloat -> bool

参数

f
nfloat

nfloat 浮点数。

返回

如果 d 计算结果为 true,则为 NaNtrue;否则为 false。

注解

IsNaN(nfloat)如果值为 PositiveInfinityNegativeInfinity,则nfloat返回 false。 若要测试这些值,请使用 IsInfinity(nfloat)IsPositiveInfinity(nfloat)M:System.Double.IsNegativeInfinity (System.nfloat) 方法。

适用于