[rrd-users] Problem with RRD converting intergers to floating point

Lightfoot, Kirk klightfoot at soe.sony.com
Mon Jul 29 20:52:02 MEST 2002


I'm having a problem with RRDTool converting interger numbers to floating
point.

For instance...If I run the following command...
/usr/local/rrdtool/bin/rrdtool update database.rrd 1027814400:100827
One would believe that if I graphed the value for time 1027814400 RRDTool
would return a graph with the value 100827.

However this is not the case.
When dumping the RRD, I get the following as a stored value for that time.
<!-- 2002-07-27 17:00:00 PDT / 1027814400 --> <row><v> 9.9068250000e+04
</v></row>
When converted back to decimal form, 99068.25.

As you can see, 100827 != 99068.25

I really need these numbers to be exact.  Any idea what I'm doing wrong?

-Kirk

--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list