The built-in function round()
will round a value down but I want to know how to round a value up.
i know that this is possible with math.ceil()
but the thing is that round()
has the keyword argument "ndigits" and math.ceil()
doesn't. so for example:
>>> round(1024, ndigits=-3)
1000
but i want 1100. Is there a solution for this?