xxxxxxxxxx
std::ostringstream strs;
strs << dbl;
std::string str = strs.str();
xxxxxxxxxx
#include <iostream>
#include <string.h>
using namespace std;
int main() {
double d = 238649.21316934;
string s = to_string(d);
cout << "Conversion of double to string: " << s;
return 0;
}