fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <cmath>
  4.  
  5. int main()
  6. {
  7. char * input = "0.6";
  8.  
  9. double agl = atof( input );
  10.  
  11. std::cout << agl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
0.6