2 ms·
you can use it with floats just fine if your condition boundary is a "whole number float", like running from 0.0 to 1.0 in steps of "some small increment". It's
by TheRealPomax 4y ago
you can use it with floats just fine if your condition boundary is a "whole number float", like running from 0.0 to 1.0 in steps of "some small increment". It's only when your boundary has a non-zero fraction that you're going to have to be more careful.
- creeble 4y ago>running from 0.0 to 1.0 in steps of "some small increment". I'm not sure what you mean; those aren't integers (if that's what you mean by "whole number float"): python3 >>> 0.4 == 0.6 - 0.2 False (edit: formatting for python)
- TheRealPomax 4y agofair, that was completely the wrong example.