I would like to convert a double value to a char[20].
Ma double value is : 52715.871
Here is my code :
double value = init_value();
char tab[] = new char[20];
tab = value .ToString().ToCharArray();
My problem is that my tab resul is 9 size instead of a 20 size. I would like always a 20 size.
How doing this please ?
Thanks a lot,
Best regards,
1 Answer