From: Schwimmer, E. E *H. <EE...@hs...> - 2007-06-15 19:31:23
|
I've modified the MATH transform to accept a precision argument. It will be available in devmon-0.3.0-beta2 -Eric -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Tom Georgoulias Sent: Friday, June 08, 2007 1:59 PM To: devmon-support Subject: [Devmon] rounding decimal values with MATH transform How can I specify the precision of the numbers that I am calculating=20 with the MATH transform? I have a template to gather temperature data=20 from a system and feed it to Hobbit, but my rrds aren't being created=20 properly because of the decimal in the F value. I would like to round=20 up the values to the nearest integer but didn't see anything in the=20 docs/TEMPLATES file. My message file looks like this. I'd like to replace the 98.60 with 99, and so on. Device Temp(C) Temp(F) ----------------------------------- &green hwSensor1Temp 37 98.60 &green hwSensor2Temp 31 87.80 &green hwSensor3Temp 35 95.00 &green hwSensor4Temp 31 87.80 --=20 Tom Georgoulias Systems Engineer McClatchy Interactive to...@mc... ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Devmon-support mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/devmon-support |