From: "Eustáquio Rangel" Date: 2016-11-18T21:14:44-02:00 Subject: [ruby-core:78207] Re: [Ruby trunk Bug#12958] Breaking change in how `#round` works --===============0958352865== Content-Type: multipart/alternative; boundary=001a1141b25cc5452a05419b78e5 --001a1141b25cc5452a05419b78e5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable So we'll have the following behaviors: 11.5.round =3D> 12 11.5.round(half: :even) =3D> 12 11.5.round(half: :up) =3D> 12 12.5.round =3D> 12 12.5.round(half: :even) =3D> 12 12.5.round(half: :up) =3D> 13 =E2=80=8BOn 2.3.1 if the last number is 5 it always goes up, right? Regards,=E2=80=8B --001a1141b25cc5452a05419b78e5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
So = we'll have the following behaviors:

11.5.round
=C2=A0=3D> 12=C2=A0
11.5= .round(half: :even)
=C2=A0=3D> 12=C2= =A0
11.5.round(half: :up)
=C2=A0=3D> 12=C2=A0

12.5.round
=C2=A0=3D> 12=C2=A0
=
12.5.round(half: :even)
=C2=A0=3D> 12=C2=A0
12.5.r= ound(half: :up)
=C2=A0=3D> 13=C2=A0

=E2=80=8BOn 2.3.1 if the last number is 5 it= always goes up, right?

R= egards,=E2=80=8B

--001a1141b25cc5452a05419b78e5-- --===============0958352865== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Unsubscribe: --===============0958352865==--