def roundToNearest(number, nearest):
    """ Rounds a decimal number to the closest value, nearest, given 

    Arguments:
        number: [float] the number to be rounded
        nearest: [float] the number to be rouned to

    Returns:
        rounded: [float] the rounded number
    """

    A = 1/nearest

    rounded = round(number*A)/A

    return rounded