Is there such a function that will convert a double to a string?

Use a stringstream object:

#include <sstream> 
//...
stringstream ss;
double value = 10.4567;
ss<<value;
string valuestr = ss.str();

There are certainly other methods that will work but this one is more straightforward IMHO.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.