The follwing C++ code demonstrates how to convert a double to string using stringstream. We also use two manipulators setiosflags and setprecision to ensure the code behave correctly.
#include <iostream>
#include <iomanip>
#include <sstream>
using namespace std;
void main()
{
double d = 1600564.00;
stringstream ss;
ss << setiosflags(ios::fixed) << setprecision(2) << d;
string str = ss.str();
ss.clear();
}