def round_to_factor(value, factor):
    """
    Round value to nearest multiple of factor. Factor can be a float
    :param value: float
    :param factor: float
    :return: float
    """

    return factor * round(value / factor)