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: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-11-09 20:11:23 PST ---
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: -------

Reply via email to