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.

適用対象

こちらもご覧ください