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
adoubleFirst value to probe.
bdoubleSecond value to probe.
epsilondoubleValue that limits difference.
Returns
- bool
True if difference between two values less then epsilon; otherwise false.