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

IntegerLength

IntegerLength[n]
gives the number of digits in the base 10 representation of the integer n.
IntegerLength[n, b]
gives the number of digits in the base b representation of n.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
Find the number of decimal digits in 123456789:
The number of binary digits in 100!:
Plot it:
The IntegerLength for different bases:
Find how the number of digits in 100! decreases with the base:
New in 6