isEquivalent static method
Determines if two floating-point numbers are equivalent within a given epsilon value.
Returns true if the absolute difference between the two numbers is less
Implementation
static bool isEquivalent(double a, double b, [double epsilon = .0001]) {
return (a - epsilon < b) && (a + epsilon > b);
}