Returns whether the specified float-precision floating-point number equals positive or negative infinity.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static bool IsInfinite(
float x
)
Public Shared Function IsInfinite (
x As Single
) As Boolean
public:
static bool IsInfinite(
float x
)
static member IsInfinite :
x : float32 -> bool
Parameters
- x
- Type: SystemSingle
A float-precision floating-point number.
Return Value
Type:
Boolean if
x is not NaN and not infinite; otherwise
.
This method is significantly faster than the IsNaN(Double) method
in many situations.
Reference