Skip to content

Commit fc9f05f

Browse files
authored
Add Math.sumPrecise() feature (#2956)
1 parent 90b49b7 commit fc9f05f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

features/draft/spec/tc39-math-sum.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

features/math-sum-precise.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Math.sumPrecise()
2+
description: 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.
3+
spec: https://tc39.es/proposal-math-sum/
4+
group: javascript
5+
compat_features:
6+
- javascript.builtins.Math.sumPrecise

features/draft/spec/tc39-math-sum.yml.dist renamed to features/math-sum-precise.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from: tc39-math-sum.yml
1+
# Generated from: math-sum-precise.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

44
status:

0 commit comments

Comments
 (0)