News for hackers. Stuff that matters.
Re:How to Correctly Sum Up Numbers by phonon on Sunday November 03, 2024 @10:04PM (#42038047)
You can use math.fsum[0] in Python and the upcoming Math.sumPrecise[1] in JavaScript to address much of this for double-precision floating-point.

[0]https://docs.python.org/3/library/math.html#math.fsum

[1]https://github.com/tc39/proposal-math-sum

There are no comments on this comment yet.