# Double.IsNaN(Double) メソッド

## 定義

``````public:
static bool IsNaN(double d);``````
``````public:
static bool IsNaN(double d) = System::Numerics::INumberBase<double>::IsNaN;``````
``public static bool IsNaN (double d);``
``static member IsNaN : double -> bool``
``Public Shared Function IsNaN (d As Double) As Boolean``

d
Double

#### 戻り値

`d`NaN と評価される場合は `true`。それ以外の場合は `false`

## 例

``````// This will return true.
if ( Double::IsNaN( 0 / zero ) )
{
Console::WriteLine( "Double::IsNan() can determine whether a value is not-a-number." );
}
``````
``````// This will return true.
if (Double.IsNaN(0 / zero))
Console.WriteLine("Double.IsNan() can determine whether a value is not-a-number.");
``````
``````// This will return true.
if Double.IsNaN(0. / zero) then
printfn "Double.IsNan() can determine whether a value is not-a-number."
``````
``````' 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
``````

## 注釈

IsNaN値が `false` または NegativeInfinityPositiveInfinity場合Doubleは を返します。 これらの値をテストするには、および メソッドをIsNegativeInfinity使用IsInfinityIsPositiveInfinityします。