From: James Tursa on
"Matt Fig" <spamanon(a)yahoo.com> wrote in message <hrdrsm$n4s$1(a)fred.mathworks.com>...
>
> I was implying that (IMO), the OP was looking for something else.

You're probably right ...

James Tursa
From: us on
"AS"
> So, the question now reduces to finding a function to give me the number of digits in a number. For example:
> 12353 --> 5
> 32.7182 --> 6
> .9945 --> 4
>
> Any thoughts on that?

yes - how could this ...ever... work(?)...
because, what you see is not what you have...
and - whoever thinks (including mathematica) HAS to make some second guessing, ie, approximation (maybe based on some +/-EPS arithmetic)...
thus, you're better off if you specify the # of digits you want to look at...

format long;
n=32.7182 % <- what you type...
% n = 32.718200000000003 % <- what you have...
% -or-
n=32.71820004 % <- now you have a more exotic number...
% n = 32.718200039999999
n=32.71820005
% n = 32.718200050000000 % <- just so happens(!)

% whatever has to deal with your request, sees the ...what you have... only...

us