Peter Otten wrote:

If you are using Python 2.x:
...
So you better throw in a float(...):

Or, add

  from __future__ import division

at the top of the file. I put this at the top of all my Python files, whether I expect to be dividing or not. It just saves grief.

Cheers,
- Joe

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to