[issue23923] Integer operations (// or %) on negative numbers product wrong results.
Eric V. Smith added the comment: This is the expected behavior: https://docs.python.org/2/faq/programming.html#why-does-22-10-return-3 -- nosy: +eric.smith resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23923 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23923] Integer operations (// or %) on negative numbers product wrong results.
New submission from Antoon Houben: -17 // 3 should produce -5 but is currently producing -6 -17 % 3 should produce 2 but is currently producing 1 -- messages: 240569 nosy: Antoon priority: normal severity: normal status: open title: Integer operations (// or %) on negative numbers product wrong results. type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23923 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com