I was using the ROUND function within some Perl Script as follows ...
[%Begin Unverified Perl
for($i=1; $i<=30; $i++)
I have 60 data points (saved in MD1_r1_c1 to MD1_r1_c30 and MD1_r2_c1 to MD1_r2_c30). It's a simple average calculation across the 60 data points that I am seeking. No problems there. It works fine.
To put the icing on the cake, I wanted to round the average to 2 decimal places (always). It almost works every time. I noticed if the average was 41.40, it only saved 41.4, and not 41.40. I suspect an average of 51.00 would only appear as 51?
Was hoping to find a neat solution where my average calculation always provided me with the nearest 2 decimal places.