Checking for equalities with floating point numbers can be a little tricky. However, your counters are essentially integers, and that's a different story.
As long as the counter is properly initialized, and is checked for a terminal value at each iteration, you should be fine.
I would also use a default (harmless) value for #102. If none of the comparisons succeed, what is the value of #102 ?


LinkBack URL
About LinkBacks





