ruby/ext/bigdecimal/lib/bigdecimal
Kenta Murata a5b4b806de
[ruby/bigdecimal] Allow digits=0 in BigDecimal(flt) and Float#to_d
Using dtoa of mode=0, we can determine the number of digits in decimal that is
necessary to represent the given Float number without errors.

This change permits digits=0 in BigDecimal(flt) and Float#to_d, and these
methods use dtoa of mode=0 when the given digits is 0.

Internal implicit conversion from Float also uses digits=0.

[Fix GH-70]

2dbe170e35
2021-01-13 11:49:18 +09:00
..
jacobian.rb Import changes from ruby/bigdecimal (#2531) 2019-10-08 09:06:28 +09:00
ludcmp.rb handle ext/ as r53141 2015-12-16 05:31:54 +00:00
math.rb bigdecimal: version 1.3.3 2017-12-13 15:28:30 +00:00
newton.rb handle ext/ as r53141 2015-12-16 05:31:54 +00:00
util.rb [ruby/bigdecimal] Allow digits=0 in BigDecimal(flt) and Float#to_d 2021-01-13 11:49:18 +09:00