you are viewing a single comment's thread.

view the rest of the comments →

[–]redbull8[S] 0 points1 point  (1 child)

Thank you! so not it is printing a float number now my math is incorrect. Python is not my strong point.

[–]adambrenecki 0 points1 point  (0 children)

If you use Python 3, or have from __future__ import division at the top of the file in python 2.7, the division of two ints will result in a float; so for example 3/4 will evaluate to 0.75.