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

Implement custom rounding (like half-even aka bankers rounding) #2

Open
Sija opened this issue Feb 13, 2018 · 0 comments
Open

Implement custom rounding (like half-even aka bankers rounding) #2

Sija opened this issue Feb 13, 2018 · 0 comments

Comments

@Sija
Copy link
Member

Sija commented Feb 13, 2018

The best solution would be to implement BigDecimal#round(n, mode), where mode would be one of the possible options, see BigDecimal#ROUND_MODE in Ruby.

Refs crystal-lang/crystal#7126

@Sija Sija changed the title Use bankers rounding (half-even) Implement custom rounding (like half-even aka bankers rounding) Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant