New blog post! I really hope I'll get a decent amount of people mad with this one 😈😈😈
It's OK to compare floating-points for equality:
https://lisyarus.github.io/blog/posts/its-ok-to-compare-floating-points-for-equality.html
New blog post! I really hope I'll get a decent amount of people mad with this one 😈😈😈
It's OK to compare floating-points for equality:
https://lisyarus.github.io/blog/posts/its-ok-to-compare-floating-points-for-equality.html
@lisyarus I learned "use epsilon" before IEEE-754 existed, when you didn't necessarily know how your floats behaved at boundary conditions. and I never really thought about it much after floats became universally standardized.
this feels like a case of a best-practice principle losing its context and getting misapplied in a changed environment