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

Bigdeciment 1.9+: to_s sometimes has extra trailing zeroes #1121

Closed
enebo opened this Issue Oct 12, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@enebo
Copy link
Member

enebo commented Oct 12, 2013

From test_bigdecimal.rb (MRI):

BigDecimal.new('123.45678901234567890').to_s(5)

We were leaving zero on end here instead of stripping it off.

@enebo

This comment has been minimized.

Copy link
Member Author

enebo commented Oct 12, 2013

Fixed in commit cc76149.

@enebo enebo closed this Oct 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.