simple math question

Rinzwind w.damen at gmail.com
Sat Feb 11 15:27:26 EST 2006


'/' is a floor division (1/2 == 0) unless validated by a from
__future__ import division.

So:
5/2=2.5 -> nearest lowest non-decimal number makes it 2.
5/-2=-2.5 -> nearest lowest non-decilmal number makes it -3




More information about the Python-list mailing list