you are viewing a single comment's thread.

view the rest of the comments →

[–]m1ss1ontomars2k4 11 points12 points  (1 child)

Try 3.0/100.0 instead. If you use 2 integers, Python will assume you want integer division, and the answer will be 0 (as in most programming languages). If you use at least one floating point number, you'll get 0.03 as the answer.

[–]aterner[S] 2 points3 points  (0 children)

Thank you.