[PLUG] OT: Formula For Determining # Of Digits In An Integer

Jason Van Cleve jason at vancleve.com
Thu Feb 17 21:55:04 UTC 2005


Hi,

I know many of you folks are advanced in mathematics.  I need a formula
that will take an integer and return the number of its digits:

3	--> 1
25	--> 2
52341	--> 5
032	--> 2 (ignore leading 0's)

Any ideas?

--Jason

--
Emacs is a great operating system.  The only thing it lacks is a good
text editor.



More information about the PLUG mailing list