fuzzy function

bool fuzzy(
  1. num a,
  2. num b, [
  3. double tolerance = 0.00001
])

Compares two numbers to see if they're almost the same

Implementation

bool fuzzy(num a,num b, [double tolerance = 0.00001]) {
  return ((a < (b + tolerance)) && (a > (b - tolerance)));
}