nfloat.IsNaN(nfloat) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回值,該值表示指定的值是否不是數字 (NaN)。
public static bool IsNaN (nfloat f);
static member IsNaN : nfloat -> bool
參數
- f
- nfloat
浮點數。
傳回
如果評估為 ,則 d
為 NaN true;否則為 false。
備註
IsNaN(nfloat) 如果 nfloat 值為 PositiveInfinity 或 NegativeInfinity ,則會傳回 false。 若要測試這些值,請使用 IsInfinity(nfloat) 、 IsPositiveInfinity(nfloat) 和 M:System.Double.IsNegativeInfinity (System.nfloat) 方法。