[rrd-users] CDEF,RPN, no decimal constant possible?

Peter pspiegler at gmx.de
Thu Jul 10 18:59:37 CEST 2014


rrd use really the formula "DeLog_L,LOG,4,*" 
The fractional part is lost.
I updated a smaller rrd with some 1000 and get with dump:
...
<row><v>1.0000000000e+003</v><v>2.7631021116e+001</v></row>

But it should be 30.
The real formula is L=10*LOG10(Delog_L).
Because there is no LOG10 I used 10/LOG(10)=4.342944819

So I changed the formula to LOG(Delog_L)*10/LOG(10):
DS:L:COMPUTE:DeLog_L,LOG,10,*,10,LOG,/

and get
 <row><v>1.0000000000e+003</v><v>3.0000000000e+001</v></row>

It is a bug, that decimal numbers are round to integer numbers?

Peter



--
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/CDEF-RPN-no-decimal-constant-possible-tp7582283p7582286.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list