Double.PositiveInfinity Double.PositiveInfinity Double.PositiveInfinity Double.PositiveInfinity Field

定義

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

public: double PositiveInfinity = Infinity;
public const double PositiveInfinity = Infinity;
val mutable PositiveInfinity : double
Public Const PositiveInfinity As Double  = Infinity

フィールド値

次のコード例は、の使用を示していますPositiveInfinity:。The following code example illustrates the use of PositiveInfinity:

// This will equal Infinity.
Console::WriteLine( "PositiveInfinity plus 10.0 equals {0}.", (Double::PositiveInfinity + 10.0) );
// This will equal Infinity.
Console.WriteLine("PositiveInfinity plus 10.0 equals {0}.", (Double.PositiveInfinity + 10.0).ToString());
' This will equal Infinity.
Console.WriteLine("PositiveInfinity plus 10.0 equals " + (Double.PositiveInfinity + 10).ToString() + ".")

注釈

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

操作の結果がより大きい場合、この定数が返されるMaxValueします。This constant is returned when the result of an operation is greater than MaxValue.

使用IsPositiveInfinity値が正の無限大に評価されるかどうかを判断します。Use IsPositiveInfinity to determine whether a value evaluates to positive infinity.

適用対象

こちらもご覧ください