<div dir="ltr"><div>I've discovered a rather troubling behaviour when using `in-range` with floating point numbers, which I think is worth knowing in case you hadn't consider the issue before:<br></div><div><br></div><div>On my machine, I get the following:</div><div><div><br></div><div>(length (for/list ([i (in-range .1 .7 .1)]) i)) ; 6</div><div>(length (for/list ([i (in-range .1 .8 .1)]) i)) ; 8 (!)</div></div><div><br></div><div>But:</div><div><div>(length (for/list ([i (in-range 1/10 7/10 1/10)]) i)) ; 6</div><div>(length (for/list ([i (in-range 1/10 8/10 1/10)]) i)) ; 7</div></div><div><br></div><div><br></div><div>Would it be a good idea to safe-guard these kinds of cases directly in `in-range`?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>