def float_xrange(start, end, step=1.0, exceed=False):
    """Like range() but for floats"""
    i = start
    if exceed:
        more = step
    else:
        more = 0.0
    while i < end + more:
        yield i
        i += step
