[Issue 6925] Thousands grouping syntax in writef?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 6 19:57:09 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=6925
Berni44 <bugzilla at bernis-buecher.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at bernis-buecher.de
--- Comment #2 from Berni44 <bugzilla at bernis-buecher.de> ---
Meanwhile
writef("%.2,f", 1234567.89);
does this grouping. Result: "1,234,567.89" It does not support a locale though.
And if I should guess, it will never do, because that would make the functions
non pure. A possible approach would probably be, to add a special module for
localization that calls writef and modifies the result according to the locale.
--
More information about the Digitalmars-d-bugs
mailing list