Commit 41ff5dd
committed
[ruby/bigdecimal] Use larger precision in divide for irrational or recurring results
Just in case for irrational or recurring results, the precision of the
quotient is set to at least more than 2*Float::DIG plus alpha.
[Bug ruby#13754] [Fix rubyGH-94]
ruby/bigdecimal@99442c75d31 parent 0794b2c commit 41ff5dd
File tree
2 files changed
+21
-9
lines changed- ext/bigdecimal
- test/bigdecimal
2 files changed
+21
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1508 | 1508 | | |
1509 | 1509 | | |
1510 | 1510 | | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1518 | 1517 | | |
1519 | 1518 | | |
1520 | 1519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
956 | | - | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
957 | 959 | | |
958 | | - | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
959 | 963 | | |
960 | 964 | | |
961 | 965 | | |
| |||
969 | 973 | | |
970 | 974 | | |
971 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
972 | 985 | | |
973 | 986 | | |
974 | 987 | | |
| |||
0 commit comments