Single.PositiveInfinity Single.PositiveInfinity Single.PositiveInfinity Single.PositiveInfinity Field

定義

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

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

フィールド値

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

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

適用対象

こちらもご覧ください