3 ms·
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://do
by phonon 2y ago
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 https://docs.python.org/3/library/math.html#math.fsum
[1]https://github.com/tc39/proposal-math-sum https://github.com/tc39/proposal-math-sum