|
|
|
|
|
by LeifCarrotson
1847 days ago
|
|
Python isn't strongly typed. You got an integer floor operation with -3 / 2 = -2, but -3.2 / 2 = -1.6. This led to errors when floats were expected but integers were possible among your inputs. In Python 3, it always gives a floating-point result. You can use a floor division operator if you want to round everything (including integers) towards negative infinity. See https://www.python.org/dev/peps/pep-0238/ for details. |
|