def near(a, b, significance=0.0001):
    """ Returns True iff the difference between the values is within the factor 'significance' of
    one of the original values.  Default is to within 4 decimal places. """
    return abs(a - b) <= significance * max(abs(a), abs(b))
