2011-11-29, 08:12 PM
Kalovale Wrote:The question now is how do I know beforehand that something this simple (decrement step by 0.1) is going to run into this problem? Should I always do the (different > epsilon) check instead of (difference = 0) check?
You'll pretty much want to use >= or <= for floating-point compares in place of ==. Integer is fine to use ==, though.

