Bug 8574 – [std.format] The flag ' ' works for floating numbers, not only for integers
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-21T08:32:00Z
Last change time
2013-02-05T12:58:45Z
Keywords
pull
Assigned to
nobody
Creator
liremn
Comments
Comment #0 by liremn — 2012-08-21T08:32:49Z
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.