def round_int(n, d):
    return round(n / float(d)) * d
Round a number (float/int) to the closest multiple of a divisor (int).
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/primitives.py/round_int