Serve Lau wrote:
What is the expected result of -1/2 in python?

Python 3.0b1 (r30b1:64403M, Jun 19 2008, 14:56:09) [MSC v.1500 32 bit (Intel)]
n win32
Type "help", "copyright", "credits" or "license" for more information.
>>> -1/2
-0.5
as expected ;-)

-1//2 is as Gary Herron specified from the manual, for reasons posted here several times and which should be in the FAQ

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

Reply via email to