Returns whether the specified double-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(
double x
)
Public Shared Function IsInfinite (
x As Double
) As Boolean
public:
static bool IsInfinite(
double x
)
static member IsInfinite :
x : float -> bool
Parameters
- x
- Type: SystemDouble
A double-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