Elementary.Is Na N 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
IsNa | Returns whether the specified double-precision floating-point number is a Not-A-Number (NaN) value. |
IsNa | Returns whether the specified float-precision floating-point number is a Not-A-Number (NaN) value. |
IsNaN(Double)
Returns whether the specified double-precision floating-point number is a
Not-A-Number (NaN) value.
public static bool IsNaN(
double x
)
Parameters
- x Double
- A double-precision floating-point number.
Return Value
Booleantrue if x is a NaN; otherwise false.
Remarks
This method is significantly faster than the IsNaN(Double) method in many situations.
IsNaN(Single)
Returns whether the specified float-precision floating-point number is a
Not-A-Number (NaN) value.
public static bool IsNaN(
float x
)
Parameters
- x Single
- A float-precision floating-point number.
Return Value
Booleantrue if x is a NaN; otherwise false.
Remarks
This method is significantly faster than the IsNaN(Double) method in many situations.