Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Number Digits >

IntegerDigits

IntegerDigits[n]
gives a list of the decimal digits in the integer n.
IntegerDigits[n, b]
gives a list of the base-b digits in the integer n.
IntegerDigits[n, b, len]
pads the list on the left with zeros to give a list of length len.
  • IntegerDigits gives the most significant digit first, as in standard positional notation.
  • If len is less than the number of digits in n then the len least significant digits are returned.
New in 2 | Last modified in 3
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team