[Issue 8574] New: [std.format] The flag ' ' works for floating numbers, not only for integers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 21 08:32:50 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8574

           Summary: [std.format] The flag ' ' works for floating numbers,
                    not only for integers
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: liremn at gmail.com


--- Comment #0 from Liremn Yukiha <liremn at gmail.com> 2012-08-21 08:32:49 PDT ---
In the document of std.format of Phobos
(http://dlang.org/phobos/std_format.html), it is written that the flag ' ' only
affects "integral ('d')" in the table describing the formatting flags, but it
seems that it also works for floating numbers, or even BigInt (with "% d" or "%
s"). So I suppose the last row of the table should be:

' ' / numeric / Prefix positive numbers in a signed conversion with a space.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list