News for hackers. Stuff that matters.
Re:There Are Only Four Billion Floats–So Test Them All (2014) by nickpeterson on Thursday February 09, 2023 @06:24PM (#34733211)
Someone needs to make a bumper sticker for developers that says “fast and wrong”. I’d imagine non-programmers would buy more of them for other reasons…
Re:There Are Only Four Billion Floats–So Test Them All (2014) by Dylan16807 on Thursday February 09, 2023 @07:55PM (#34734126)
It's only on edge cases that floating point isn't mathematically wrong. And sometimes you don't mind an extra couple ULPs of drift.
Re:There Are Only Four Billion Floats–So Test Them All (2014) by fsckboy on Friday February 10, 2023 @12:16AM (#34735903)
fast and wrong? that's not a great bumper sticker to have when you're getting pulled over for speeding.