[rrd-users] How to set values with a beginning Zero?
Chris Mason
chris at noodles.org.uk
Tue Feb 28 13:00:47 CET 2012
> Hi Chris,
> but this method would add a leading zero always, right? My problem is, that I don't what to add a leading zero, if the value already has two numbers before the point.
You can specify in the formula how many digits you want to print
before the decimal point. If you use a format of "%02.2lf" then it
will print two digits (zero padded) before the decimal point and 2
digits after the decimal point.
More information about the rrd-users
mailing list