Double.NegativeInfinity Поле
Определение
Представляет минус бесконечность.Represents negative infinity. Это поле является константой.This field is constant.
public: double NegativeInfinity = -Infinity;
public const double NegativeInfinity = -Infinity;
val mutable NegativeInfinity : double
Public Const NegativeInfinity As Double = -Infinity
Значение поля
Примеры
В следующем примере кода показано использование NegativeInfinity :The following code example illustrates the use of NegativeInfinity:
// 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() + ".")
Комментарии
Значение этой константы является результатом деления отрицательного числа на ноль.The value of this constant is the result of dividing a negative number by zero.
Эта константа возвращается, если результат операции меньше Double.MinValue .This constant is returned when the result of an operation is less than Double.MinValue.
Используйте IsNegativeInfinity , чтобы определить, является ли значение отрицательной бесконечностью.Use IsNegativeInfinity to determine whether a value evaluates to negative infinity.