(no title)
arraypad | 3 years ago
This is indeed clearly documented [1], I guess I never looked closely enough. I found some discussion on the dev-python list [2] which shows at least I'm not the only one surprised by this!
arraypad | 3 years ago
This is indeed clearly documented [1], I guess I never looked closely enough. I found some discussion on the dev-python list [2] which shows at least I'm not the only one surprised by this!
cm2187|3 years ago
masklinn|3 years ago
That… is exactly the behaviour python implements, and what GP was surprised by…
It is also, incidentally, the IEEE 754 recommendation.
Python 2 used to round away from 0.
rubicks|3 years ago
So, consider the source of the complaint.
masklinn|3 years ago
Well that and it returns an integer when rounding to 0 digits, but that’s less of an issue since the langage also switched to “true division”.
dec0dedab0de|3 years ago