Method to test equality within a tolerance limit