◐ Shell
clean mode source ↗

Message 249835 - Python tracker

Alex, if you like, I'll take the blame for the rounding method - I did express a preference for it here:

http://bugs.python.org/issue23517#msg249309

When I looked at the code earlier, the round-half-up implementation looked good to me (floor(x+0.5) if x >= 0 else ceil(x-0.5)).