double d;
char c[100];
string s;

sprintf(c,"%f",d);
s=(string)c;