frange frange(*args) ¶ Like range() but accepts float arguments. Source code in src/robot/utils/frange.py 19 20 21 22 23 24 25 26 27def frange(*args): """Like ``range()`` but accepts float arguments.""" if all(is_integer(arg) for arg in args): return list(range(*args)) start, stop, step = _get_start_stop_step(args) digits = max(_digits(start), _digits(stop), _digits(step)) factor = pow(10, digits) return [x / factor for x in range(round(start*factor), round(stop*factor), round(step*factor))]