Single.IsPositiveInfinity(Single) Single.IsPositiveInfinity(Single) Single.IsPositiveInfinity(Single) Single.IsPositiveInfinity(Single) Method

定義

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

public:
 static bool IsPositiveInfinity(float f);
public static bool IsPositiveInfinity (float f);
static member IsPositiveInfinity : single -> bool
Public Shared Function IsPositiveInfinity (f As Single) As Boolean

パラメーター

f
Single Single Single Single

単精度浮動小数点数。A single-precision floating-point number.

戻り値

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

次のコード例に示します、IsPositiveInfinityメソッド。The following code example demonstrates the IsPositiveInfinity method.

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

注釈

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

適用対象

こちらもご覧ください