Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in the banker's rounding builtin ò (or was this intended?) #201

Open
kcruijss opened this issue Jan 6, 2023 · 0 comments
Open

Issue in the banker's rounding builtin ò (or was this intended?) #201

kcruijss opened this issue Jan 6, 2023 · 0 comments

Comments

@kcruijss
Copy link

kcruijss commented Jan 6, 2023

There seems to be an issue in the banker's rounding builtin ò. By the looks of it, it seems to round away from zero for halves, instead of doing actual banker's rounding with round to even.

Or was this intended, and the new version of 05AB1E lacks a banker's rounding builtin, and only has a regular round builtin with 'away from zero' convention?

Try it online.
Compare it to the same code in the legacy version of 05AB1E, where it does work as banker's rounding as mentioned in the docs.
Found while working on this codegolf answer of mine.

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

No branches or pull requests

1 participant