Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Error in Division of BigDecimal #644
jRuby 1.7.3 is giving an incorrect (or at least inconsistent with MRI and jRuby 1.6.5) answer for a simple division problem
The correct answer is 5000. MRI and jRuby 1.6.5 give the correct answer. 1.7.3 does not
Although I suspect that the root of the problem is the same as the problem in JIRA this issue report does add some information. It is not just numbers between 0 and 1 as my case divides by 2.2046. I also tried 2.7046:
So it looks the mantissa is being dropped from the divisor?