Re: Procedure for percent of a value




The solution is to make one of the values a floating point value, all
other numbers will be "coerced" into floating point numbers too.
Usually it's done like this:

set srate [expr int((1.0 * $tps_ok / $number_of_total_tps)*100)]

Yep. That worked. Floating point conversion was missing.

Thanks folks

Marcos


.