C ++ is certainly not the strongest skill set. Do not pay attention to the question, but this should convert to std :: string, not what you are looking for, but leaving it as it was the original post ....
double d = 123.45;
std::ostringstream oss;
oss << d;
std::string s = oss.str();
This needs to be converted to a managed string.
double d = 123.45
String^ s = System::Convert::ToString(d);
source
share