yinglcs, you can use float() or the new division: >>> 1 / 2 0 >>> 1 / float(2) 0.5 >>> from __future__ import division >>> 1 / 2 0.5
Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list
yinglcs, you can use float() or the new division: >>> 1 / 2 0 >>> 1 / float(2) 0.5 >>> from __future__ import division >>> 1 / 2 0.5
Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list