istringstream iss(string(argv[2])); double t; if( !( iss>>t) ) { exit(1); }