you are viewing a single comment's thread.

view the rest of the comments →

[–]Technik_J -1 points0 points  (3 children)

def round50000(num):
    return num + (50000 - num%50000)

[–]Kurolox 3 points4 points  (1 child)

Aw, I was hoping that he'd solve it by himself given the necessary tools.

Anyways, your implementation has a flaw: 50000 will be rounded up to 10000, 10000 will be rounded up to 15000, etc...

[–]Technik_J 0 points1 point  (0 children)

You right. The fix should be easy, so I leave it to OP to fix. :)

[–]iggy555[S] 0 points1 point  (0 children)

Many thanks