[New-bugs-announce] [issue29815] Fail at divide a negative integer number for a positive integer number
Marcos Thomaz
report at bugs.python.org
Wed Mar 15 03:56:40 EDT 2017
New submission from Marcos Thomaz:
At divide a negative integer number for a positive integer number, the result is wrong. For example, in operation:
a, b, c = -7, 2, 7
d = divmod(a, b)
print a//b, a%b, c[0], c // b, c%b
The values printed are -4 1 3 1
----------
components: Interpreter Core
messages: 289647
nosy: marcosthomazs
priority: normal
severity: normal
status: open
title: Fail at divide a negative integer number for a positive integer number
type: crash
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29815>
_______________________________________
More information about the New-bugs-announce
mailing list