comment arrondi au 25 python le plus proche
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)