Method GreaterThanAndNotClose
GreaterThanAndNotClose(double, double)
Determines whether the first value is greater than the second value and not approximately equal to it.
public static bool GreaterThanAndNotClose(double value1, double value2)
Parameters
value1doubleThe first double-precision floating-point value to compare.
value2doubleThe second double-precision floating-point value to compare.
Returns
- bool
true if
value1is greater thanvalue2and the two values are not approximately equal; otherwise, false.
Remarks
The method uses a predefined tolerance to determine whether the two values are approximately equal.
GreaterThanAndNotClose(float, float)
Determines whether the first value is greater than the second value and not approximately equal to it.
public static bool GreaterThanAndNotClose(float value1, float value2)
Parameters
value1floatThe first floating-point value to compare.
value2floatThe second floating-point value to compare.
Returns
- bool
true if
value1is greater thanvalue2and the two values are not approximately equal; otherwise, false.
Remarks
The method uses a predefined tolerance to determine whether the two values are approximately equal.