[issue23923] Integer operations (// or %) on negative numbers product wrong results.

Antoon Houben report at bugs.python.org
Sun Apr 12 23:54:03 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23923>
_______________________________________


More information about the Python-bugs-list mailing list