Elementary.Is Finite Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
IsFinite( | Returns whether the specified double-precision floating-point number is finite. |
IsFinite( | Returns whether the specified float-precision floating-point number is finite. |
IsFinite(Double)
Returns whether the specified double-precision floating-point number is finite.
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.
IsFinite(Single)
Returns whether the specified float-precision floating-point number is finite.
public static bool IsFinite(
float x
)
Parameters
- x Single
- A float-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.