I'm trying to get precise division with Python without success.
104101/2 gives 52050 whereas I need 52050.5
I also tried "%0.2f" % (104101/2) which is giving me '52050.00'.
Javascript equivalent works. Any idea what's wrong with me?
I'm trying to get precise division with Python without success.
104101/2 gives 52050 whereas I need 52050.5
I also tried "%0.2f" % (104101/2) which is giving me '52050.00'.
Javascript equivalent works. Any idea what's wrong with me?