[Tutor] Unexpected result of division by negative integer, was: (no subject)
Peter Otten
__peter__ at web.de
Sat Jun 2 10:52:14 CEST 2012
Jason Barrett wrote:
[Jason, please use "reply all" instead of sending a private mail. Your
answer will then appear on the mailing list and other readers get a chance
to offer an alternative explanation.]
>> In python, why does 17/-10= -2? Shouldn't it be -1?
>
>> http://docs.python.org/faq/programming.html#why-does-22-10-return-3
> I just started programming so all this is new to me. I don't really
> understand the explanation. I'm a novice at programming.
More information about the Tutor
mailing list