def RoughlyEqual(val1, val2, tol=1e-05):
    """
    Check if values are roughtly equal

    :param `val1`: the first value to check
    :param `val2`: the second value to check
    :param `tol`: the tolerance, defaults to 0.00001

    :returns: True or False

    """
    return (val1 < val2 + tol and val1 > val2 - tol and val2 < val1 + tol and
        val2 > val1 - tol)
