def round_to(n, precision): correction = 0.5 if n >= 0 else -0.5 return int( n/precision+correction ) * precisiondef round_to_05(n): return round_to(n, 0.05)

def round_to(n, precision): correction = 0.5 if n >= 0 else -0.5 return int( n/precision+correction ) * precisiondef round_to_05(n): return round_to(n, 0.05)