Elementary.Is Finite(Double) Method
Returns whether the specified double-precision floating-point number is finite.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
true if x is not NaN and not infinite; otherwise false.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static bool IsFinite(
double x
)
Parameters
- x Double
- A double-precision floating-point number.
Return Value
Booleantrue if x is not NaN and not infinite; otherwise false.
Remarks
This method is significantly faster than the IsNaN(Double) method in many situations.