I have a float value that needs to be put into a std::string. How do I convert from float to string?
std::string
float val = 2.5; std::string my_val = val;
If you're worried about performance, check out the Boost::lexical_cast library.