|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
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.
DetailsDetails
- Integer mathematical function, suitable for both symbolic and numerical manipulation.
- IntegerLength[n, b] is effectively an efficient version of Floor[Log[b, n]]+1.
- IntegerLength ignores the sign of n.
- IntegerLength automatically threads over lists.
New in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »



