def equals_auto_tol(x: float, y: float, precision: float = 1e-6) -> bool:
    """ Returns true if two numbers are equals using a default tolerance of 1e-6 about the smaller one. """
    return abs(x - y) < min(x, y) * precision;