Double.IsPositiveInfinity(Double) Double.IsPositiveInfinity(Double) Double.IsPositiveInfinity(Double) Double.IsPositiveInfinity(Double) Method

定義

指定した数値が正の無限大と評価されるかどうかを示す値を返します。Returns a value indicating whether the specified number evaluates to positive infinity.

public:
 static bool IsPositiveInfinity(double d);
public static bool IsPositiveInfinity (double d);
static member IsPositiveInfinity : double -> bool
Public Shared Function IsPositiveInfinity (d As Double) As Boolean

パラメーター

d
Double Double Double Double

倍精度浮動小数点数。A double-precision floating-point number.

戻り値

dPositiveInfinity と評価される場合は true。それ以外の場合は falsetrue if d evaluates to PositiveInfinity; otherwise, false.

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

// This will return S"true".
Console::WriteLine( "IsPositiveInfinity(4.0 / 0) == {0}.", Double::IsPositiveInfinity( 4.0 / zero ) ? (String^)"true" : "false" );
// This will return "true".
Console.WriteLine("IsPositiveInfinity(4.0 / 0) == {0}.", Double.IsPositiveInfinity(4.0 / 0) ? "true" : "false");
' This will return "True".
Console.Write("IsPositiveInfinity(4.0 / 0) = ")
If Double.IsPositiveInfinity(4 / 0) Then
    Console.WriteLine("True.")
Else
    Console.WriteLine("False.")
End If

注釈

浮動小数点演算PositiveInfinityオーバーフロー状態を通知します。Floating-point operations return PositiveInfinity to signal an overflow condition.

適用対象

こちらもご覧ください