I need to round of a number (the input is guaranteed to be an integer & is positive) to the next multiple of 5.
I tried this:
int round = ((grade
I have a function to round up:
def next(number, base): temp = round(number / base) * base return temp
you can use it for your case like this:
next(grade[j], 5)
and in function it will be:
temp = round(67 / 5) * 5 return temp #temp = 75
some case not using round but using ceil