As of Firefox 137, I intend to enable Math.sumPrecise by default on all platforms. It is currently enabled only in Nightly builds, behind the `javascript.options.experimental.math_sumprecise` preference. Math.sumPrecise minimizes the rounding error when summing a sequence of floating point numbers, that is, it provides a better result than naively adding x1 + x2 + x3 + x4 + ... one by one. Our implementation makes use of Radford Neal's xsum library, and was contributed by a volunteer, Debadree Chatterjee. Thanks Debadree :)
It reached Stage 3 of the TC39 process in October 2024. JavaScriptCore shipped their implementation in Tech Preview 205: https://developer.apple.com/documentation/safari-technology-preview-release-notes/stp-release-205. Work has not yet started in V8: https://issues.chromium.org/issues/374310075 . Bug to turn on by default: https://bugzilla.mozilla.org/show_bug.cgi?id=1943120 Standard: https://github.com/tc39/proposal-math-sum -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAC_Rxa7%2ByZVVz76BbNnaTJyaxP3kEuBPoSOy9XKovROiTfECLQ%40mail.gmail.com.
