Lets say I have
and I want to haveCode:float a = 12.50f;
I already have a way to know how many digits the float has if you are interested:Code:int b[4] = { 1, 2, 5, 0 };
the last part is for the 2 decimals.Code:n = 10; while (1) { Digits++; if (n > TheFloat) break; n *= 10; } Digits += 2;
Thanks for any help.