Method IsZero
IsZero(double)
Determines whether the specified double-precision floating-point value is equal to zero.
public static bool IsZero(double value)
Parameters
valuedoubleThe double-precision floating-point value to compare to zero.
Returns
Remarks
The comparison accounts for potential floating-point precision issues and considers values close to zero as equal to zero.
IsZero(float)
Determines whether the specified floating-point value is equal to zero.
public static bool IsZero(float value)
Parameters
valuefloatThe floating-point value to compare to zero.
Returns
Remarks
The comparison accounts for potential floating-point precision issues and considers values close to zero as equal to zero.