Re: Procedure for percent of a value



Marcos Martinez Sancho <noemail@xxxxxxxxxx> wrote:
set srate [expr int(($tps_ok / $number_of_total_tps)*100)]

After two other responses, hinting towards floating point
math, I dare to hint towards doing multiplication first,
and division afterwards :-)
set srate [expr {$tps_ok*100/$number_of_total_tps}]

.