News for hackers. Stuff that matters.
Re:Floating Point Expression Inspector by sharikone on Saturday July 24, 2021 @07:21PM (#27945217)
A welcome endeavor. Too many programmers are used to treat floats as cursed entities.

More awareness is needed. If implementation details such as rounding mode, CPU features, etc.. are pinned down there is little reason not to write tests that are meant to be accurate to the last bit. Instead of the awkward "near enough" approach.

Re:Floating Point Expression Inspector by enriquto on Sunday July 25, 2021 @10:44AM (#27949510)
> Too many programmers are used to treat floats as cursed entities.

These people are certainly annoying, but the worst that they can do is to cautiously avoid floats, which does not really harm anybody. More dangerous are those that treat floats as if they were real numbers, thus creating chaos in their wake.

Re:Floating Point Expression Inspector by OnlyOneCannolo on Monday July 26, 2021 @07:23AM (#27958103)
There's also a floating point expression generator that tries to make your calculations more accurate, but it doesn't seem to give an analysis like this. These two tools would seem to go well together.

https://herbie.uwplse.org/doc/latest/tutorial.html