Single.NegativeInfinity Single.NegativeInfinity Single.NegativeInfinity Single.NegativeInfinity Field

定義

負の無限大を表します。Represents negative infinity. このフィールドは定数です。This field is constant.

public: float NegativeInfinity = -Infinity;
public const float NegativeInfinity = -Infinity;
val mutable NegativeInfinity : single
Public Const NegativeInfinity As Single  = -Infinity

フィールド値

次のコード例に示します、NegativeInfinity定数。The following code example demonstrates the NegativeInfinity constant.

// This will equal Infinity.
Console::WriteLine( "10.0 minus NegativeInfinity equals {0}.", (10.0 - Single::NegativeInfinity) );
// This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals {0}.", (10.0 - Single.NegativeInfinity).ToString());
' This will equal Infinity.
Console.WriteLine("10.0 minus NegativeInfinity equals " + (10 - Single.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.

適用対象

こちらもご覧ください