IntegerLength
gives the number of digits in the base-10 representation of
x
.
gives the number of base-
b
digits inx
.
See
Examples
IntegerLength
with base 2
:
Check that IntegerLength
is correct for the first 100 powers of 10:
The base must be greater than 1
:
‘0’ is a special case:
Implementation status
- ✅ - full supported