def round_partial(value, resolution):
    """Rounds any number to an arbitrary nearest number.
       round_partial(7, 5) would round the value 7 to the closest value
       of 5, therefore returning 5.
    """
    return round(value / resolution) * resolution