Re:Why does 0.1 and 0.2 = 0.30000000000000004?
by int_19h on Wednesday February 08, 2023 @05:38PM
(#34716560)
We should be optimizing for correctness over performance by default, though. People who need binary floating point for perf reasons should already know the tradeoffs.
[ Parent
| on HN ]
Re:Why does 0.1 and 0.2 = 0.30000000000000004?
by Karellen on Thursday February 09, 2023 @06:49AM
(#34722577)
I remember reading on a forum many years ago where one person was rationalising performance over correctness, someone replied that if their code didn't have to be correct they could get the answer in clock 1 cycle with zero memory usage. :-)