On Jan 13, 8:43 pm, Odysseus <[EMAIL PROTECTED]> wrote: > In article > <[EMAIL PROTECTED]>, > Roberto Bonvallet <[EMAIL PROTECTED]> wrote: > > > Put this at the beginning of your program: > > > from __future__ import division > > > This forces all divisions to yield floating points values: > > Thanks for the tip. May I assume the div operator will still behave as > usual?
div operator? The integer division operator is // >>> from __future__ import division >>> 1 / 3 0.33333333333333331 >>> 1 // 3 0 >>> 22 / 7 3.1428571428571428 >>> 22 // 7 3 >>> 22 div 7 File "<stdin>", line 1 22 div 7 ^ SyntaxError: invalid syntax >>> -- http://mail.python.org/mailman/listinfo/python-list