summaryrefslogtreecommitdiff
path: root/progs/a738.py
blob: 27191c13b7d9012bf2c96e2310b50aea4dae6ed2 (plain)
1
2
3
4
def round_num(n,m):
    a = (n //m) * m
    b = a + m
    return (b if n - a > b - n else a)