Expression | Value |
---|---|
(num-digits 9475) | 4 |
(num-digits 1234567890) | 10 |
(num-digits 0) | 1 |
A: The problem of determining the number of digits in an integer that is one digit smaller.
Example:
Number of digits in 9475 | = | Number of digits in 947 | + | 1 |
= | 3 | + | 1 | |
= | 4 |