I'm looking for a way to calculate the number of digits in a decimal number, such as $600.045$.
I'm aware of the $1+\mathrm{int}(\log(x))$ formula for finding number of digits of an integer, but this doesn't work for non-whole numbers.
Can anyone think of a way to do this?
If it helps, I'm trying to accurately find square root on a TI-84 using the Babylonian method, and to do this I need to know significant digits
Hint
The number of digits of $x$ after the point is the least integer $n$ such that $10^nx$ is integer.