10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74cd039 commit 2e1dfd2Copy full SHA for 2e1dfd2
test/bigdecimal/test_bigdecimal.rb
@@ -936,7 +936,9 @@ def test_div
936
assert_equal(2, BigDecimal("2") / 1)
937
assert_equal(-2, BigDecimal("2") / -1)
938
939
- assert_not_equal(BigDecimal('1487.0'), BigDecimal('1472.0') / BigDecimal('0.99'), '[ruby-core:59365] [#9316]')
+ assert_equal(BigDecimal('1486.868686869'),
940
+ (BigDecimal('1472.0') / BigDecimal('0.99')).round(9),
941
+ '[ruby-core:59365] [#9316]')
942
943
assert_in_delta(4.124045235,
944
(BigDecimal('0.9932') / (700 * BigDecimal('0.344045') / BigDecimal('1000.0'))).round(9, half: :up),
0 commit comments