Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Mathematical Functions > Number Theoretic Functions > Number Digits >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team