To make it short, here is the code :
std::string m_specs = "f500000";
float m_sten = 21.0;
std::cout << m_specs << std::endl;
m_specs = "f" + boost::lexical_cast<std::string>(m_sten);
std::cout << m_specs << std::endl;
The first output will be :
f500000
, but the second will be
f6.70932579e+028
The expect result is
f21.0
I don't have any idea why is this conversion so strange... I need your lights. Thank you in advance.