In an Arduino program I\'m working on the GPS sends the coordinates to the arduino through USB. Because of this, the incoming coordinates are stored as Strings. Is there any way
c_str() will give you the string buffer const char* pointer. .
So you can use your convertion functions:. int gpslong = atoi(curLongitude.c_str()) float gpslong = atof(curLongitude.c_str())