Question about slight deviations when using integer division with large integers.
Ian Kelly
ian.g.kelly at gmail.com
Mon Dec 31 02:49:53 EST 2018
On Sun, Dec 30, 2018 at 10:18 PM Christian Seberino <cseberino at gmail.com> wrote:
>
> What is simplest way to make both those
> prints give same values? Any slicker way
> than an if statement?
Stack Overflow has a few suggestions:
https://stackoverflow.com/questions/19919387/in-python-what-is-a-good-way-to-round-towards-zero-in-integer-division
More information about the Python-list
mailing list