Double.IsNaN メソッド
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Dim d As Double Dim returnValue As Boolean returnValue = Double.IsNaN(d)
戻り値
d が NaN と評価される場合は true。それ以外の場合は false。
使用例
IsNaN の使用方法については、次のコード例を参照してください。
' This will return true. If Double.IsNaN(0 / zero) Then Console.WriteLine("Double.IsNan() can determine whether a value is not-a-number.") End If
// This will return true. if (Double.IsNaN(0 / zero)) { Console.WriteLine("Double.IsNan() can determine whether a value is not-a-number."); }
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- Double.IsNaN メソッドのページへのリンク