def check_similarity(var1, var2, error):
    """
    Check the simulatiry between two numbers, considering a error margin.

    Parameters:
    -----------
        var1: float
        var2: float
        error: float
    Returns:
    -----------
        similarity: boolean
    """
    if((var1 <= (var2 + error)) and (var1 >= (var2 - error))):
        return True
    else:
        return False