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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19574>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to