goby icon indicating copy to clipboard operation
goby copied to clipboard

Support user defined precision of Decimal strings

Open ear7h opened this issue 6 years ago • 1 comments

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

ear7h avatar Apr 14 '18 07:04 ear7h

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

hachi8833 avatar Apr 14 '18 07:04 hachi8833