Originally Posted by Eurisko 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 ? |
Quick questions on break here.
What do you mean "terminal value"? So integers pretty much always succeed?
Thanks for your help!