IntegerLength
[x]IntegerLength
[x, b]IntegerLength[123456]
IntegerLength[10^10000]
IntegerLength[-10^1000]
IntegerLength
with base 2:
IntegerLength[8, 2]
Check that IntegerLength
is correct for the first 100 powers of 10:
IntegerLength /@ (10 ^ Range[100]) == Range[2, 101]
The base must be greater than 1:
IntegerLength[3, -2]
0
is a special case:
IntegerLength[0]