negative integer division

Skip Montanaro skip at pobox.com
Mon Feb 7 19:27:27 EST 2005


    Imbaud> integer division and modulo gives different results in c and
    Imbaud> python, when negative numbers are involved. 

http://www.python.org/doc/faq/programming.html#why-does-22-10-return-3

Skip



More information about the Python-list mailing list