Question about slight deviations when using integer division with large integers.
Chris Angelico
rosuav at gmail.com
Sun Dec 30 21:59:01 EST 2018
On Mon, Dec 31, 2018 at 1:56 PM Christian Seberino <cseberino at gmail.com> wrote:
>
> Perhaps the "secret" is *not* do integer division with negative numbers?
I have no idea what you're replying to, but integer division with
negative numbers IS well defined. Python will floor - it will always
round down.
ChrisA
More information about the Python-list
mailing list