Skip to content

Conversation

@andreubotella
Copy link
Collaborator

The existing implementation of Math.sumPrecise did f64 addition, which could result in precision losses and overflows due to intermediate results. This patch fixes this by using the xsum crate instead.

Additionally, since the Math.sumPrecise proposal has been stage 4 since July 2025, this patch removes the proposal-math-sum feature and enables it by default.

The existing implementation of `Math.sumPrecise` did `f64` addition,
which could result in precision losses and overflows due to
intermediate results. This patch fixes this by using the xsum crate
instead.

Additionally, since the `Math.sumPrecise` proposal has been stage 4
since July 2025, this patch removes the `proposal-math-sum` feature
and enables it by default.
Copy link
Member

@eliassjogreen eliassjogreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

Copy link
Member

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and this is really nice in general! Thank you <3

@aapoalas aapoalas merged commit 48c43f2 into trynova:main Dec 13, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants