I have a float variable that i want to get the length of.
I assume i must convert this to a string first but do not know how to do so. I tried using "sprintf(b,"%f",a)" but it would round off, and i need to preserve the exact length of the string.
for example:
float f1;
f1 = 10.1234;
char string[10];
i would need to somehow return that the length of f1 is 7 (assuming decimal is counted).
so i would need to convert f1 to "10.1234" and then just take the length of that, but f1 could not be converted to "10.1234000"
thanks for any help.