[Issue 11400] Floating point numbers with fractional part printing alignment problem
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 6 17:34:28 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=11400
berni44 <bugzilla at d-ecke.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at d-ecke.de
Resolution|--- |INVALID
--- Comment #1 from berni44 <bugzilla at d-ecke.de> ---
You misunderstood the meaning of the number before the dot: When you've got
"%2.3f", the 2 means the number of *all* symbols printed out, while 3 is the
number of all digits after the dot. When you use "%6.3f" in your last example,
everything is as expected...
--
More information about the Digitalmars-d-bugs
mailing list