1
It's OK to compare floating-points for equality
NB: The title of this post is an intentional clickbait. Even though I do stand for its statement, a more honest one would be something like: It's NOT OK to compare floating-points using epsilons.
Visit lisyarus.github.io → On Hacker News Mar 2024 – May 2026
Software Engineering 6Games & Graphics 5Web & Frontend 1Math & Algorithms 1Programming Languages 1
NB: The title of this post is an intentional clickbait. Even though I do stand for its statement, a more honest one would be something like: It's NOT OK to compare floating-points using epsilons.