Project

General

Profile

Actions

Bug #11766

closed

sprintf formatting Rationals as floats produces garbage

Added by heftig (Jan Steffens) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
[ruby-core:71806]

Description

Test case:

"%8.1f %8.1f" % [1r, 1r]

Expected:

"     1.0      1.0"

Actual result:

"              \u0000\u0000\u0000"
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0