I\'m looking to find a way to round up to the nearest 500.I\'ve been using:
math.ceil(round(8334.00256 + 250, -3))
Whereby I have a value from
I personally find rounding a but messy. I'd rather use:
(x+250)//500*500
// means integer division.
//
EDIT: Oh, I missed that you round "up". Then maybe
-(-x//500)*500