v147 · javascript · covered on mdn
Math.sumPrecise
A static method that sums an iterable of numbers using a compensated summation algorithm, avoiding the floating-point precision loss that accumulates when adding values in a naive loop. TC39 Stage 4 (ECMAScript 2026).
this feature is documented on MDN
MDN: Math.sumPrecise()
MDN has a full reference page including the algorithm details, examples comparing results to a naive loop sum, browser compatibility, and the TC39 proposal link. gendn doesn't duplicate that here.
quick reference
| Signature | Math.sumPrecise(iterable) |
|---|---|
| Returns | number — the precisely computed sum |
| Typical use | Financial totals, physics simulations, statistical aggregates where error accumulation matters |
| Shipped in | Chrome 147 (desktop + Android) |
| Standard | ECMAScript 2026 (TC39 Stage 4) |
| ChromeStatus | 4790090146643968 — Math.sumPrecise |
| TC39 proposal | nicolo-ribaudo / tc39-proposal-math-sum |