Replies To: Mortgage Calculator with user input

Re: Mortgage Calculator with user input

Weird. I ran it a few times and I only saw the boxes once. Every other time it ran fine.

You do have some other errors though: For example a $5,000 loan over 30 years doesn't stop at zero, it goes into negatives.

For the boxes, the only thing I can think of since I can't reproduce it on command, it is the float point calculations. If a certain computer can't display the values it will show a little box (like if it was written in a language you don't have the pack installed for).

So, you have no numbers to work from. You're using CalculatePaymentXX for each possibility. You're doing this because of the globals. This would be much easier if you just passed some parameters around.