Quote Originally Posted by Rich1e1990 View Post
This is the way it should be?... I was also wondering what way I would go about adding a total row along the bottom?
Go back and change your loop to use integers, not doubles.

The reason is that floating point arithmetic is not exact. Right now, you're only getting away with it because you're adding 1 to the value. If you were adding 0.1 or some other fractional element, the loop will execute an indefinite number of times due to floating point rounding errors.

Regards,

Paul McKenzie