chiprook
← Software
SoftwareOctober 12, 2026, 18:02

JavaScript's Math.sumPrecise() eliminates floating-point summation errors

JavaScript now has Math.sumPrecise(), which returns the exact sum of an iterable of numbers with a single final rounding, so the result no longer depends on order. It reached Baseline in April 2026 in Chrome and Edge 147, Firefox 137 and Safari 26.2, but is still missing in Node.js 24.11.

JavaScript's Math.sumPrecise() eliminates floating-point summation errors
#JavaScript#Chrome#Firefox#Safari
Read next
Software

Out-of-order HTML streaming moves from JS frameworks into browsers

Software

Safari runs a module worker's entry file twice if anything imports it

Software

CSS Anchor Positioning hits Baseline: dropdowns without JavaScript

Software

SCSKiller Tool Eliminates Shader Compilation Stutter in Unreal Engine 5 Games