Project

General

Profile

Backport #9305

BigDecimal inconsistent between 2.0, 2.1 (probably incorrect on 2.1)

Added by kwerle (Kurt Werle) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-

Description

BigDecimal / BigDecimal seems to round off.

The test case has not been reduced to trivial, but it's pretty small and should be pretty clear.

ruby bigdecimal_spec.rb
passes for ruby 2.0.

Fails for ruby 2.1

ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]


Files

bigdecimal_spec.rb (779 Bytes) bigdecimal_spec.rb kwerle (Kurt Werle), 12/27/2013 06:57 AM

Also available in: Atom PDF