def to_digits_base10(n):
    """
    Return the digits of a number in base 10.
    """
    digits = []
    remaining = n
    while remaining > 0:
        digit = remaining % 10
        remaining = (remaining - digit) // 10
        digits.append(digit)

    return digits[::-1]