www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: liremn gmail.com



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: -------
Aug 21 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8574


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
            Version|unspecified                 |D2



Pull request:
https://github.com/D-Programming-Language/phobos/pull/755

 or even BigInt (with "% d" or "% s").
BigInt supports its formatting by the std.format module correctly, so this is correct behavior. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 21 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8574




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/b7df920554f1c53313740f33aa762342e38fa00c
fix Issue 8574 - [std.format] The flag ' ' works for floating numbers, not only
for integers

https://github.com/D-Programming-Language/phobos/commit/0a511e3975e7c0e4b05c5bff56728ba0263c77fe


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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 27 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8574


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


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