📜  c++ std string to float - C++ 代码示例
📅  最后修改于: 2022-03-11 14:44:45.698000             🧑  作者: Mango
代码示例1
std::string num = "0.6";
double temp = ::atof(num.c_str());
std::cout << temp << std::endl;
// Output: 0.6