fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. std::string f0 = "0.000085";
  7. std::string f1 = "0.214334";
  8.  
  9. std::cout << std::stof(f0.c_str()) << std::endl;
  10. std::cout << std::stof(f1.c_str()) << std::endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
8.5e-05
0.214334