News for hackers. Stuff that matters.
Re:Pretty.c by im3w1l on Thursday October 24, 2024 @06:09AM (#41934018)
I would go even further and say that any equality comparison of float numbers has to be a one-off special case. You need to know how much error can arise in your calculations, and you need to know how far apart legitimately different numbers will for your particular data. And of course the former has to be smaller than the latter.

There are no comments on this comment yet.