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


--- Comment #0 from Liremn Yukiha <liremn 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: -------
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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-08-21 08:47:46 PDT ---
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



--- Comment #2 from github-bugzilla puremagic.com 2012-08-27 01:44:14 PDT ---
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
Merge pull request #755 from 9rnsr/fix8574

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