Code: Select all
set outputcounter3 [expr (([join $outputmysql " + "] - $min - $max) / ($i - 2)) * 100]
set outputcounter3 [expr round($outputcounter3)]
25.20 25.9 28.83 24.98 19.94 28.99 29.29 27.94 26.71 28.19 27.06 22.49
so i join "+" them to get them all calc. i do minus the $min and the $max and divide that with 10 i get an output of 29.5877777778 but i want 29.59 to be msg in channel so what i did was * 100 and round the number i get 2959 so i was thinking devide that with 100 i get 29.59 but no i get 29
what am i doing wrong ? and how do i get the right number 29.59