04-20-2010 03:43 PM
I defined a global array of cluster "Test Results" with all the parameters I needed to log and created a user event which triggers when the data needs to be logged. Though I created the pressure flow rate and vacuum flow rate as a double when I write it to list box or a .csv file I see the rounded value. I tried %d or %f instead %s but still I get a rounded value. But when I checked my global variable "Test Results"those parameters are double. Any help is appreciated.
Thanks
Solved! Go to Solution.
04-20-2010 03:47 PM
did you check the CSV file by opening in excel and formatting the cell to display decimal values?
04-20-2010 04:13 PM
04-20-2010 06:49 PM
romesh, remove the . in the format specifier or place a value after the .
the format specifier %.f will be read as %.0f which will have no places after the decimal point. If you need 2 places use %.2f. That should fix the problem.
Troy.