Sergiy wrote:
> print 1 / 2
> print -1 / 2
> 
> 0
> -1
> 
> correct?

Yes.  It works like the floor() function.

>>> import math
>>> math.floor(1.0 / 2)
0.0
>>> math.floor(-1.0 / 2)
-1.0

Shane

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

Reply via email to