digitalmars.D.bugs - [Issue 6925] New: Thousands grouping syntax in writef?
- d-bugmail puremagic.com (19/28) Nov 09 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6925
http://d.puremagic.com/issues/show_bug.cgi?id=6925
Summary: Thousands grouping syntax in writef?
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody puremagic.com
ReportedBy: bearophile_hugs eml.cc
Quotation from: http://linux.die.net/man/3/printf
For some numeric conversions a radix character ("decimal point") or thousands'
grouping character is used. The actual character used depends on the LC_NUMERIC
part of the locale. The POSIX locale uses '.' as radix character, and does not
have a grouping character. Thus,
printf("%'.2f", 1234567.89);
results in "1234567.89" in the POSIX locale, in "1234567,89" in the nl_NL
locale, and in "1.234.567,89" in the da_DK locale.
Maybe it's good to support this syntax in writef/writefln too. But I don't know
if using the locale is a good idea here.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2011








d-bugmail puremagic.com