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

Change default rounding mode to TIES_EVEN #10508

Conversation

straight-shoota
Copy link
Member

The default rounding mode for Number#round is changed to TIES_EVEN (Banker's rounding).

Resolves #10414

Follow-up to #10413

Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

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

Thank you @straight-shoota 🙏

@bcardiff bcardiff merged commit 1b704d9 into crystal-lang:master Mar 15, 2021
@straight-shoota straight-shoota deleted the refactor/number-round-default-even branch March 15, 2021 15:13
koffeinfrei added a commit to koffeinfrei/should-i-watch-this that referenced this pull request Jul 8, 2021
crystal 1.0.0 introduced a breaking change with rounding
crystal-lang/crystal#10508.
koffeinfrei added a commit to koffeinfrei/should-i-watch-this that referenced this pull request Jul 9, 2021
crystal 1.0.0 introduced a breaking change with rounding
crystal-lang/crystal#10508.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change default rounding mode to TIES_EVEN
3 participants