|
|
|
|
|
by jcynix
740 days ago
|
|
Hmm, my solution would be to convert the number to a string and return its length. Easily done in Perl: perl -e 'print length 987654'
6
Similarly easy in Lisp with either of write-to-string, prin1-to-string, and princ-to-string. I expect python to have some such built-in function too. |
|