Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Numerical Computation / Number Representation /

DigitCount

FilledSmallSquare DigitCount[n, b, d] gives the number of d digits in the base b representation of n.

FilledSmallSquare DigitCount[n, b] gives a list of the numbers of 1, 2, , , 0 digits in the base b representation of n.

FilledSmallSquare DigitCount[n] gives a list of the numbers of 1, 2, , 9, 0 digits in the base 10 representation of n.

FilledSmallSquare DigitCount[n] is equivalent to DigitCount[n, 10, Mod[Range[10],10]].

FilledSmallSquare Integer mathematical function (see Section A.3.10).

FilledSmallSquare See Section 3.2.4.

FilledSmallSquare See also: IntegerDigits, FromDigits, BitAnd, IntegerExponent.

FilledSmallSquare New in Version 4.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.