My question is very simple. I don't know how I could count the charactere in double ? For example : 13.43, answer is 4.
I may use (% 10) but I'am not able to find a right method with digital number.
int i = 0;
double a = 13.43;
while (a != 0)
{
a = a / 10;
i++;
}
Thanks to this data, I will create a malloc with a right dimension.
Thanks.