Not the percentage of each rolled number
I see. You use expressions like this:
The major issue is that since both times_rolled and num3 (but numN in general applies to this) are integers, integer division takes place. If you want an answer other than zero, you need to cast one of the dividing terms to say, float, to yield percentages.
So I would have to have the num1 num2 etc all in floats?
No, it means you should do
Now num3 will be converted into a float in this calculation which means you will do a floating point division which will keep the decimals.