cpp convert float to string makes it 0 code example
Example: cpp float to string
#include <sstream>
//..
std::ostringstream ss;
ss << myFloat;
std::string s(ss.str());
#include <sstream>
//..
std::ostringstream ss;
ss << myFloat;
std::string s(ss.str());