Method IsCloseTo
IsCloseTo(double, double, double)
Indicates whether two given values are close to each other.
public static bool IsCloseTo(this double a, double b, double epsilon = 1E-05)
Parameters
a
doubleFirst value to probe.
b
doubleSecond value to probe.
epsilon
doubleValue that limits difference.
Returns
- bool
True if difference between two values less then epsilon; otherwise false.