# Double.IsNegativeInfinity(Double)Double.IsNegativeInfinity(Double)Double.IsNegativeInfinity(Double)Double.IsNegativeInfinity(Double) Method

## Определение

Возвращает значение, позволяющее определить, равно ли данное число минус бесконечности.Returns a value indicating whether the specified number evaluates to negative infinity.

``````public:
static bool IsNegativeInfinity(double d);``````
``public static bool IsNegativeInfinity (double d);``
``static member IsNegativeInfinity : double -> bool``
``Public Shared Function IsNegativeInfinity (d As Double) As Boolean``

#### Параметры

d
Double Double Double Double

Число двойной точности с плавающей запятой.A double-precision floating-point number.

#### Возвраты

Значение `true`, если значение параметра `d` равно значению NegativeInfinity; в противном случае — значение `false`.`true` if `d` evaluates to NegativeInfinity; otherwise, `false`.

## Примеры

В следующем примере кода показано использование IsNegativeInfinity:The following code example illustrates the use of IsNegativeInfinity:

``````// This will return S"true".
Console::WriteLine( "IsNegativeInfinity(-5.0 / 0) == {0}.", Double::IsNegativeInfinity(  -5.0 / zero ) ? (String^)"true" : "false" );
``````
``````// This will return "true".
Console.WriteLine("IsNegativeInfinity(-5.0 / 0) == {0}.", Double.IsNegativeInfinity(-5.0 / 0) ? "true" : "false");
``````
``````' This will return "True".
Console.Write("IsNegativeInfinity(-5.0 / 0) = ")
If Double.IsNegativeInfinity(-5 / 0) Then
Console.WriteLine("True.")
Else
Console.WriteLine("False.")
End If
``````
``````if ( d > Double::MaxValue )
{
Console::WriteLine( "Your number is bigger than a double." );
}
``````
``````if (d > Double.MaxValue)
Console.WriteLine("Your number is bigger than a double.");
``````
``````If D > Double.MaxValue Then
Console.WriteLine("Your number is bigger than a double.")
End If
``````
``````// This will equal Infinity.
Console::WriteLine( "10.0 minus NegativeInfinity equals {0}.", (10.0 - Double::NegativeInfinity) );
``````
``````// This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals {0}.", (10.0 - Double.NegativeInfinity).ToString());
``````
``````' This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals " + (10 - Double.NegativeInfinity).ToString() + ".")
``````

## Комментарии

Операции с плавающей запятой NegativeInfinity возвращают, чтобы сообщить о состоянии переполнения.Floating-point operations return NegativeInfinity to signal an overflow condition.