IntegerDigits

IntegerDigits[n]
returns a list of the base-10 digits in the integer n.
IntegerDigits[nbase]
returns a list of the base-base digits in n.
IntegerDigits[nbaselength]
returns a list of length length, truncating or padding with zeroes on the left as necessary.

The sign of n is discarded: