IntegerDigits

WMA link


IntegerDigits[n]

returns the decimal representation of integer x as list of digits. x's sign is ignored.

IntegerDigits[n, b]

returns the base b representation of integer x as list of digits. x's sign is ignored.

IntegerDigits[n, b, length]

returns a list of length length. If the number is too short, the list gets padded with 0 on the left. If the number is too long, the length least significant digits are returned.

The same thing specifying base 10 explicitly:

The sign is discarded:

Just the last 3 digits:

A geeky way to relate Christmas with Halloween is to note that Dec(imal) 25 is Oct(al) 31

FromDigits
IntegerReverse