import math


def is_close_list(comp_val, comp_list, rel_tol=1e-9, abs_tol=0.0):
    """
    Checks, if a value exists in a list. All values in a user defined range will be
    taken into account. Returns true or false
    :param comp_val: value being searched for in the list
    :param comp_list: list of existing values
    :param rel_tol: relative tolerance
    :param abs_tol: absolute tolerance
    :return: boolean, if exists or not
    """
    for el in comp_list:
        if math.isclose(float(comp_val), float(el), rel_tol=rel_tol, abs_tol=abs_tol):
            return True
    return False