[New-bugs-announce] [issue19574] Negative integer division error

Vatroslav Suton report at bugs.python.org
Wed Nov 13 22:01:28 CET 2013


New submission from Vatroslav Suton:

integer division obviously uses float division with math.floor, which produces invalid result when result is less than 0, simply try the following 5/2 versus -5/2. Please use math.ceil function for results less than 0.
btw is there any way to patch that in __builtins__ ?

----------
components: Library (Lib)
messages: 202778
nosy: vatroslavsuton
priority: normal
severity: normal
status: open
title: Negative integer division error
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19574>
_______________________________________


More information about the New-bugs-announce mailing list