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]

https://github.com/ruby/bigdecimal/commit/2dbe170e35
2021-01-13 11:49:18 +09:00
..
2020-12-20 04:22:29 +09:00
2020-08-27 16:42:06 +09:00
2020-08-27 16:42:06 +09:00
2020-08-27 16:42:06 +09:00
2020-12-23 23:40:04 +09:00
2020-08-27 16:42:06 +09:00
2020-12-22 21:51:15 +09:00
2021-01-05 23:10:39 +09:00
2020-08-27 16:42:06 +09:00
2021-01-05 02:27:58 +09:00
2020-12-19 02:05:08 +09:00
2020-12-23 19:53:21 +09:00
2020-08-27 16:42:06 +09:00
2020-12-22 02:51:49 +09:00
2020-09-10 20:42:53 +09:00
2020-12-18 14:09:32 +09:00
2020-06-19 08:26:47 +09:00
2020-06-19 08:26:47 +09:00