From: Joseph Jones Date: 2015-12-17T21:06:31-07:00 Subject: [ruby-core:72273] [Ruby trunk - Bug #11766] [Open] sprintf formatting Rationals as floats produces garbage --56738647_77465f01_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 2, 2015 at 17:39:= 09 MST, jan.steffens=40gmail.com wrote:Issue =2311766 has been reported b= y Jan Steffens.----------------------------------------Bug =2311766: spri= ntf formatting Rationals as floats produces garbagehttps://bugs.ruby-lang= .org/issues/11766* Author: Jan Steffens* Status: Open* Priority: Normal* = Assignee: * ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) =5Bx86=5F= 64-linux=5D* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN--------= --------------------------------Test case:=7E=7E=7E=22%8.1f %8.1f=22 % =5B= 1r, 1r=5D=7E=7E=7EExpected:=7E=7E=7E=22 1.0 1.0=22=7E=7E=7EActual result:= =7E=7E=7E=22 =5Cu0000=5Cu0000=5Cu0000=22=7E=7E=7E-- https://bugs.ruby-lan= g.org/ --56738647_77465f01_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 2, 2015 at 17:39:09 MST, jan.steffens=40gmail.com wrote:
=
Issue =2311766 has been re= ported by Jan Steffens.

--------------------------------------= --
Bug =2311766: sprintf formatting Rationals as floats produces gar= bage
https://bugs.ruby-lang.org/issues/11766

* Author: Ja= n Steffens
* Status: Open
* Priority: Normal
* Assignee: <= br />* ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) =5Bx86=5F64-li= nux=5D
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
-= ---------------------------------------
Test case:

=7E=7E= =7E
=22%8.1f %8.1f=22 % =5B1r, 1r=5D
=7E=7E=7E

Expec= ted:

=7E=7E=7E
=22 1.0 1.0=22
=7E=7E=7E

Actual result:

=7E=7E=7E
=22 =5Cu000= 0=5Cu0000=5Cu0000=22
=7E=7E=7E




--
https://bugs.ruby-lang.org/
--56738647_77465f01_16c--