Method IsInfinityOrNan
IsInfinityOrNan(double)
Determines whether the specified value is either
infinite (positive or negative) or not a number (NaN).
public static bool IsInfinityOrNan(double value)
Parameters
valuedoubleThe double-precision floating-point number to evaluate.
Returns
- bool
trueifvalueis NaN, PositiveInfinity, or NegativeInfinity; otherwise,false.
IsInfinityOrNan(float)
Determines whether the specified value is either
infinite (positive or negative) or not a number (NaN).
public static bool IsInfinityOrNan(float value)
Parameters
valuefloatThe floating-point number to evaluate.
Returns
- bool
trueifvalueis NaN, PositiveInfinity, or NegativeInfinity; otherwise,false.