I am iterating over an interval of decimal points, using the code in this solution: https://stackoverflow.com/a/13286671/2169327
def seq(start, end, step):
assert(step != 0)
sample_count = abs(end - start) / step
return itertools.islice(itertools.count(start, step), sample_count)
But I have a problem. My step size is going to be approximately 0.001, while my interval is 70.390829 to 70.855549. How to I assure that I actually iterate over as much as the interval as possible? Should I maybe round down to three decimals, to assure that I got as much of the area as possible? With this I mean that I need to start as close to the start, and end as close to the end as possible. Would that help? Any other clever ideas?