Open Bug 1918708 Opened 11 days ago Updated 7 days ago

[Meta] Implement the Math.sumPrecise proposal

Categories

(Core :: JavaScript Engine, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: dminor, Unassigned, Mentored)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

(Keywords: dev-doc-needed, meta)

Making a separate bug to track the implementation.

Blocks: 1911378
No longer depends on: 1911378
No longer blocks: es-proposals-stage-2
Depends on: 1918731
No longer depends on: 1918731
Depends on: 1918734

For implementation, I think we should go with the Shewchuk's algorithm (https://github.com/tc39/proposal-math-sum/blob/main/Shewchuk-robust-arithmetic.pdf), it's relatively simple, and used, for example, by Python's implementation of the equivalent functionality. The proposal author has written a polyfill that could be used as the basis for a self-hosted implementation, or converted to C++.

Mentor: dminor
Severity: -- → N/A
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.