Skip to content

Missing Math.sumPrecise() #20565

@i-love-neko-girls

Description

@i-love-neko-girls

What version of Bun is running?

1.2.17+282dda62c

What platform is your computer?

Darwin 24.0.0 arm64 arm

What steps can reproduce the bug?

bun --print 'Math.sumPrecise'

What is the expected behavior?

[Function: sumPrecise]

What do you see instead?

undefined

Additional information

Bun v1.2.17 changelog mentioned:

Math.sumPrecise implements Radford M. Neal's xsum algorithm with a large superaccumulator for arrays with more than 1,000 elements, which is 10% faster on large datasets

but Math.sumPrecise is missing in Bun

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions