On Sep 27, 7:32 am, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote:
> > Now it won't work for 99.7, 999.7, 9999.7, etc. It's also not clear
> > that this does what you want for numbers less than 1.
>
> But there is no way to tell how many digits those numbers have! The
> original solution was proposed for the *unsigned* 'x', IOW the one
> that does NOT have a fractional part.
>
> > I suggest you give this up, [..]
>
> I suggest you reread the original post and think before you shoot next
> time.
The original poster specified "integer or float." And the question
was clearly how many digits there were to the left of the decimal
point, since the OP was wanting to line up the numbers. And the
"number of digits (to the left of the decimal point)" in the case of
999.7 is clearly 3.