Double.NegativeInfinity Double.NegativeInfinity Double.NegativeInfinity Double.NegativeInfinity Field

定義

負の無限大を表します。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() + ".")

注釈

この定数の値は、負の数を0で除算した結果です。The value of this constant is the result of dividing a negative number by zero.

この定数は、演算の結果が MinValue 未満の場合に返されます。This constant is returned when the result of an operation is less than MinValue.

値が負の無限大と評価されるかどうかを判断するには、IsNegativeInfinity を使用します。Use IsNegativeInfinity to determine whether a value evaluates to negative infinity.

適用対象

こちらもご覧ください