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

Support user defined precision of Decimal strings #648

Open
ear7h opened this issue Apr 14, 2018 · 1 comment
Open

Support user defined precision of Decimal strings #648

ear7h opened this issue Apr 14, 2018 · 1 comment

Comments

@ear7h
Copy link
Contributor

ear7h commented Apr 14, 2018

Currently, Decimal#to_s is hardcoded to support 60 digits of precision.

We should do something like (ruby)[https://ruby-doc.org/stdlib-2.2.0/libdoc/bigdecimal/rdoc/BigDecimal.html#method-i-to_s] which allows the user to pass a format string to the to_s method.
#451 for context
cc @hachi8833

@hachi8833
Copy link
Member

Yes, that should be improved as you pointed out. I'll look into it.

@st0012 st0012 added this to the version 0.1.12 milestone Feb 14, 2020
@st0012 st0012 assigned st0012 and unassigned ear7h Feb 14, 2020
@st0012 st0012 modified the milestones: version 0.1.12, version 0.1.13 Feb 16, 2020
@st0012 st0012 modified the milestones: version 0.1.13, version 0.1.14 Apr 19, 2020
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

3 participants