News for hackers. Stuff that matters.
Re:Comparing Floating-Point Numbers Is Tricky by noobermin on Thursday March 30, 2017 @07:15PM (#13999769)
>When comparing to some known value—especially zero or values near it—use a fixed ϵ that makes sense for your calculations.

If you're ever doing mathematical calculations of any sort, it is a good practice to have a handle on the scale your numbers will lie within. If not just to be a better professional, it helps you choose an ϵ that matches.

There are no comments on this comment yet.