- Edited
Tomcat And this behavior is not considered an error?
This is a very good cautionary example of what can happen when you don't care about limitations of the floating point number representation. I always warn people that it will sneak and bite them in the ass sooner or later if they're not aware of how floating point works. But I mostly get waved off