Thank you! I don't see why it made a difference though if you converted from char to int before pushing the operand onto the stack instead of converting it from char to int after popping the operands from the stack, but it does work now.
TheIdeasMan. Ah yes that is very important. Thanks for reminding me about that. As for the division, should I use float instead of int?
As for the division, should I use float instead of int?
Prefer double rather than float. Float only has 6 o 7 digits of precision so that is easily exceeded. double has 15 or 16 digits so that is why it is the default.