def floatEqual(a, b, eps = 1e-7):
    """
    Decide whether two float numbers are equal up to a small distance.

    Parameters
    ----------
    a, b : float
        The two numbers to be compared.
    eps : float, default 1e-7
        The maximum error below which we can consider two numbers as equal.

    Returns
    -------
    bool
        Whether the two numbers are equal.
    """
    return abs(a - b) < eps