This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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.
Convert to binary, giving the result as a string:
Convert to Roman numerals:
Convert to binary, giving the result as a string:
In[1]:=
Click for copyable input
Out[1]//InputForm=
 
Convert to Roman numerals:
In[1]:=
Click for copyable input
Out[1]=
In base 16, a through f are used as digits:
The maximum base of 36 uses letters a through z:
ToUpperCase converts to uppercase letters:
Show a single number in successive bases from 2 to 36:
New in 6