Changeset 2294 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Dec 10, 2002, 9:29:24 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piacmd.cc
r2287 r2294 1349 1349 rpnstack.top() = exp(x); 1350 1350 } 1351 else if (args[k] == "fabs") { 1352 if ( Check_myRPNStack_(rpnstack, x, line) ) return(1); 1353 rpnstack.top() = fabs(x); 1354 } 1351 1355 else if (args[k] == "deg2rad") { 1352 1356 if ( Check_myRPNStack_(rpnstack, x, line) ) return(1); … … 1404 1408 // On met un nombre sur le stack 1405 1409 else { 1406 if (ctof(args[k].c_str(),&x) < 0) { 1410 char * esptr; 1411 x = strtod(args[k].c_str(), &esptr); 1412 // if (ctof(args[k].c_str(),&x) < 0) { 1413 if (esptr == args[k].c_str()) { 1407 1414 cerr << "PIACmd::EvalRPNExpr: syntax error near " << args[k] 1408 1415 << " in expression: \n" << line << endl;
Note:
See TracChangeset
for help on using the changeset viewer.