Well a simple fix would be to multiply everything by 10. Ie:
import os
print float(1+1+1-3)/10
os.system("pause")
SgtMe
Nearly a Posting Virtuoso
1,205 posts since Oct 2009
Reputation Points: 68
Solved Threads: 85
To be at sure side add in beginning of your numeric Python 2 code:
from __future__ import division
This makes 1/4 produce 0.25, not 0 (integer division). For integer division use // operator.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
woooee
Nearly a Posting Maven
2,454 posts since Dec 2006
Reputation Points: 777
Solved Threads: 714