def rounded_up (value, granularity) :
    """Returns `value` rounded up to nearest multiple of `granularity`.

    >>> rounded_up (3, 5)
    5
    >>> rounded_up (8, 5)
    10
    >>> rounded_up (-3, 5)
    0
    >>> rounded_up (-8, 5)
    -5

    >>> rounded_up (0.024 / 0.005, 1.0)
    5.0

    """
    if 0 < granularity < 1 :
        scale  = 1.0 / granularity
        result = rounded_up (value * scale, 1.0) / scale
    else :
        result = value + ((granularity - value) % granularity)
    return result