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

IntegerString

IntegerString[n]
gives a string consisting of the decimal digits in the integer n.
IntegerString[n, b]
gives a string consisting of the base b digits in the integer n.
IntegerString[n, b, len]
pads the string on the left with zero digits to give a string of length len.
IntegerString[n, "Roman"]
gives the Roman numeral form of n.
  • The maximum allowed base is 36. For bases larger than 10, additional digits are chosen from the letters a-z.
  • If len is less than the number of digits in n then the len least significant digits are returned.
New in 6
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team