Skip to main content

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.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.