Jak zaokrąglić do najbliższych 25 Python
def myround(x, base=5):
return base * round(x/base)
Yellowed Yacare
def myround(x, base=5):
return base * round(x/base)
def myround(x, prec=2, base=.05):
return round(base * round(float(x)/base),prec)