diff options
author | Kenta Murata <mrkn@users.noreply.github.com> | 2020-12-15 15:17:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 15:17:15 +0900 |
commit | a86c147579745859ea064ec22b2901a7ac7e4abf (patch) | |
tree | 284e480d2dfcfd0420850e962fbd31556eb737c1 /doc/ChangeLog-0.06_to_0.52 | |
parent | 9d85ed6cbb50960d08bdb24c303a8f5e06b7e922 (diff) | |
download | ruby-a86c147579745859ea064ec22b2901a7ac7e4abf.tar.gz |
Import bigdecimal 2.0.2 (#3905)
* remove duplicated include
* Make BigDecimal#round with argument < 1 return Integer
Fixes [Bug #12780]
* Use a higher default precision for BigDecimal#power and #**
When a fractional power is given, increase the precision if the
precision isn't specified via power's second argument:
Float: increase by 15 (rough number of decimal precision in float)
BigDecimal: increase by adding similar precision modifier as done to
calculate the base precision.
Rational: double the precision, since a BigDecimal is created, but
the created BigDecimal uses the same precision.
Increasing the precision for these power calculations has the obvious
tradeoff of making the calculations slower.
Fixes Ruby Bug #17264
* Use DBLE_FIG for a Float value
* Version 2.0.1
Co-authored-by: pavel <pavel.rosicky@easy.cz>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
Diffstat (limited to 'doc/ChangeLog-0.06_to_0.52')
0 files changed, 0 insertions, 0 deletions