Skip to content

Error in Division of BigDecimal #644

@vfrride

Description

@vfrride

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

irb(main):002:0> require 'bigdecimal'
=> true
irb(main):003:0> BigDecimal.new(11023)/2.2046
=> #<BigDecimal:6515d4f9,'0.55115E4',5(8)>

The correct answer is 5000. MRI and jRuby 1.6.5 give the correct answer. 1.7.3 does not

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions