Method IsInfinityOrNanOrMax
IsInfinityOrNanOrMax(double)
Determines whether the specified double-precision floating-point value is NaN, infinite, or equal to the maximum representable value.
public static bool IsInfinityOrNanOrMax(double value)
Parameters
valuedoubleThe double-precision floating-point value to evaluate.
Returns
Remarks
This method can be used to validate or filter double values that are not finite or exceed typical numeric ranges.
IsInfinityOrNanOrMax(float)
Determines whether the specified floating-point value is NaN, infinite, or equal to the maximum representable value.
public static bool IsInfinityOrNanOrMax(float value)
Parameters
valuefloatThe floating-point value to evaluate.
Returns
Remarks
This method can be used to validate or filter floating-point values that are not finite or exceed typical numeric ranges.