News for hackers. Stuff that matters.
Re:Beware of Fast-Math by adgjlsfhk1 on Saturday May 31, 2025 @05:43PM (#44147116)
> you’ll likely be surprised at what you find.

I very much doubt it. My day job is writing symbolic-numeric code. The result of 0.1+0.1+0.1 != 0.3, but for rounding to bring it up to 0.31 (i.e. rounding causing an error of 1 cent), you would need to accumulate at least .005 error, which will not happen unless you lose 13 out of your 16 digits of precision, which will not happen unless you do something incredibly stupid.

There are no comments on this comment yet.