def absdiff(x,y,floor=0):
    """
    Checks absolute difference between x and y
    If diff < floor, 0 is returned
    floor would be a decimal value, e.g. 0.05
    """
    d = abs(x-y)
    if floor and d < floor: 
        d = 0
    return d