From: Andre Bernardes Date: 2013-12-28T12:49:58-02:00 Subject: [ruby-core:59359] BigDecimal division in Ruby 2.1 --047d7bd751321abe9504ee9953a9 Content-Type: text/plain; charset=ISO-8859-1 Hi there, When updating an app to Ruby 2.1, and I ran into the following difference between ruby 2.0.0-p353 and ruby 2.1.0 when dividing two BigDecimals: *Ruby 2.0.0p353:* 2.0.0p353 :002 > (BigDecimal.new("1472.0") / BigDecimal.new("0.99")).to_f => 1486.868686869 *Ruby 2.1.0p0:* 2.1.0p0 :006 > (BigDecimal.new("1472.0") / BigDecimal.new("0.99")).to_f => 1487.0 I was wondering if this is intentional, a regression or I'm just doing something wrong. Should I open an issue? Cheers! Andre --047d7bd751321abe9504ee9953a9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi there,

When updating an app to Ruby = 2.1, and I ran into the following difference between ruby 2.0.0-p353 and ru= by 2.1.0 when dividing two BigDecimals:

Ruby 2.= 0.0p353:
2.0.0p353 :002 > (BigDec= imal.new("1472.0") / BigDecimal.new("0.99")).to_f
=A0=3D> 1486.868686869=

R= uby 2.1.0p0:
2.1.0p0 :006 > (BigDecimal.n= ew("1472.0") / BigDecimal.new("0.99")).to_f
=A0=3D> 1487.0

I was wondering if this is intentiona= l, a regression or I'm just doing something wrong. Should I open an iss= ue?

Cheers!
Andre
--047d7bd751321abe9504ee9953a9--