wakeup
10-26-2005, 04:50 AM
I want convert double to char * string for insert in a .ini file
char mystring[50];
double mydouble;
sprintf(mystring, "%f", mydouble);
It runs ok, but when I have a very small double (for example
0.000000000000000000000000001)
It convert to 0.00000000 (=0) and not to 1.0e-20
Do you know how solve it?
Thanks
_______________________
Hip Hop Directo (http://www.hhdirecto.net)
Foros de musica (http://forosunidos.webcindario.com)
char mystring[50];
double mydouble;
sprintf(mystring, "%f", mydouble);
It runs ok, but when I have a very small double (for example
0.000000000000000000000000001)
It convert to 0.00000000 (=0) and not to 1.0e-20
Do you know how solve it?
Thanks
_______________________
Hip Hop Directo (http://www.hhdirecto.net)
Foros de musica (http://forosunidos.webcindario.com)