def float_range(start, end,  step=1., exceed=False):
    """Like range() but for floats"""
    l = []
    i = start
    if exceed:
        more = step
    else:
        more = 0.
    while i < end + more:
        l.append(i)
        i += step
    return l