std::ostringstream ss; ss << myFloat; std::string s(ss.str());
std::string s = boost::lexical_cast<std::string>(myFloat);