Web platform features explorer

Math.sumPrecise()

Limited availability
Tags: javascript Groups: JavaScript

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.

Learning resources on MDN

Browser support

Specifications