Type conversion mysteries ?

Georg Hoermann georg at toppoint.de
Thu Sep 13 07:52:58 EDT 2001


Hello World,

can someone please explain these results:

print 100.0*1200/2450   is 48
print 1200/2450*100.0 gives 0 (zero ?!)

Thanks,
Georg


-- 
Georg Hoermann, Ecosystem Research Center, Kiel University, Germany
Tel. #49-431-880-4615, fx: -4083 Home: 0451/47 70 32, -33 fax, 0172/431 57 15
schorsch at ecology.uni-kiel.de



More information about the Python-list mailing list