MCPcopy Create free account
hub / github.com/antirez/ds4 / frange

Function frange

speed-bench/plot_speed.py:200–205  ·  view source on GitHub ↗
(start, stop, step)

Source from the content-addressed store, hash-verified

198
199
200def frange(start, stop, step):
201 value = start
202 # A small epsilon keeps exact decimal steps from losing their final tick.
203 while value <= stop + step * 0.001:
204 yield round(value, 10)
205 value += step
206
207
208def main():

Callers 1

render_svgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected