Lu, Yan P wrote: > I have set the option format shown below: > GPRINT:a:AVERAGE:average %lf%s $ylabel > > The output of this format is, for example: > average 5.463248M bytes/min > > Could anyone tell me there is any way that can reduce this 6 decimal points > into 2 decimal points?
Look up the manual page for printf (to be found on your computer or on the internet). In short: %6.2lf will print as ###.## HTH -- __________________________________________________________________ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +----------------------------------------------------------------------+ | Technical questions sent directly to me will be nuked. Use the list. | +----------------------------------------------------------------------+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org --> tutorial | +----------------------------------------------------------------------+ -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
