Skip to main content

interface Math

Methods #

#sumPrecise(values: Iterable<number>): number

Returns the sum of the given values using a more precise algorithm than a naive +-based reduction, avoiding the floating-point rounding errors that accumulate when summing many numbers.

MDN Reference

Did you find what you needed?

Privacy policy