SyntaxFix
Write A Post
Hire A Developer
Questions
Rounding up to the next 0.05, I would do this way:
def roundup(x): return round(int(math.ceil(x / 0.05)) * 0.05,2)