[rrd-users] Re: How to put commas in gprint numbers

Alex van den Bogaerdt alex at ergens.op.het.net
Thu Nov 17 08:39:15 MET 2005


On Wed, Nov 16, 2005 at 04:18:54PM -0900, Colht, Charles wrote:
> Is it possible to put commas in the GPRINT numbers? 

You mean thousands separator?

Manual page of printf has this to say:
    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.

Don't know if this is going to work in rrdtool but of course you can try
for yourself.
-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list