mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-users] Re: stats


From: Sven Hartge
Subject: [Mldonkey-users] Re: stats
Date: Sun, 01 Dec 2002 21:09:20 +0100
User-agent: tin/1.5.14-20020926 ("Soil") (UNIX) (Linux/2.4.20-112 (i586))

Sven Hartge <address@hidden> wrote:
> Sven Hartge <address@hidden> wrote:

> -    Printf.bprintf buf "Total downloads: %s\n" (Int64.to_string 
> stats_all.brand_download);

BTW: Is the Printf in Ocaml "compatible" with the one from C/C++? I'd
like to display the byte counters like this 100,000,000 to make them
more readable.

The manpage for printf(3) says:

,----
| 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.
`----

Is the same possible with Ocaml?

S°

-- 
Letzte Worte eines Computer-Freaks: Auf der Diskette sind bestimmt keine
wichtigen Dateien.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]