Mono Class Library: System.Single Overview | Members

System.Single.IsInfinity Method

Determines whether the specified float represents an infinity, which can be either positive or negative.

public static bool IsInfinity (float f)

Parameters

f
The float to be checked.

Returns

true if f represents a positive or negative infinity value; otherwise false.

Remarks

Note: Floating-point operations return positive or negative infinity values to signal an overflow condition.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0