共用方式為


nfloat.IsNaN(nfloat) 方法

定義

傳回值,該值表示指定的值是否不是數字 (NaN)。

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

參數

f
nfloat

浮點數。

傳回

如果評估為 ,則 dNaN true;否則為 false。

備註

IsNaN(nfloat) 如果 nfloat 值為 PositiveInfinityNegativeInfinity ,則會傳回 false。 若要測試這些值,請使用 IsInfinity(nfloat)IsPositiveInfinity(nfloat) M:System.Double.IsNegativeInfinity (System.nfloat) 方法。

適用於