def ConvertFromDecimal(num, new_base):
    """Convert a Decimal Number to a new_base Number."""
    result = 0
    counter = 0

    while num > 0:
        result = result + (num % new_base) * 10** counter
        counter += 1
        num = int(num / new_base)  # basically /= new_base without remainder if any
    return result