On Tuesday 27 February 2007 22:34, Greg Ewing wrote:
 > Is this intentional? I would have expected the
 > // operator to always give an integer result.

Think "floor division", not "integer division".  The result (r) may be a 
float, but it'll hold to the constraint:

    r == int(r)


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to