Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Number Digits >

DigitCount

DigitCount[n, b, d]
gives the number of d digits in the base b representation of n.
DigitCount[n, b]
gives a list of the numbers of 1, 2, ..., b-1, 0 digits in the base b representation of n.
DigitCount[n]
gives a list of the numbers of 1, 2, ..., 9, 0 digits in the base 10 representation of n.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
New in 4
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team