Which of these is the correct function for returning the number of digits in a positive integer, ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
You can go through then one by one and most don't work at all. ceiling(log10(n)) works for all n=/=10^m. (i.e. let n=10, log10(n)=1=ceiling(1)=/=2. )