Here's the problem. When you use
You are using integer division. In integer division, the remainder is always thrown away, so if you do 5/4, the answer will be 1. if you do 16/20, the answer will be 0. Since you are entering 1, you have 1/16, which is 0.
For your TOT to work, and to display decimals, you need to do floating point division.
First, TOT must be either a float or double variable(I prefer double).
Secondly, if you want to divide two numbers, and get a floating point result, at least one of the two numbers need to be floating point. since you are dividing twice on the same line, both of them need to be floating point numbers.