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
Scale, round, unscale:
round(x / 500.0) * 500.0
Edit: To round up to the next multiple of 500, use the same logic with math.ceil() instead of round():
math.ceil()
round()
math.ceil(x / 500.0) * 500.0