Math.sumPrecise()
The Math.sumPrecise() static method returns the sum of an iterable of numbers. It avoids the precision loss of intermediate partial sums, as found using reduce() or a loop to add together an array of values.
Status
Limited availability
MDN documentation
Specifications
- ECMAScript® 2026 Language Specification (#sec-math.sumprecise), from TC39 (Ecma International).
Browser support
- Chrome ❌ See issues.chromium.org/u/1/issues/374310075
- Chrome Android ❌
- Edge ❌
- Firefox 137 Released on 2025-04-01
- Firefox for Android 137 Released on 2025-04-01
- Safari 26.2 Released on 2025-12-12
- Safari on iOS 26.2 Released on 2025-12-12
Developer votes
Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist