Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The old rounding behaviour
def my_round(x):
return int(x + math.copysign(0.5, x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.