I'm trying to parse the latitude,longitude values from a GPS NMEA Packet. I receive the packet as a char array. I parsed the latitude array and now i need to do a multiplication operation on it. But it is a char array. For example, here is an example array:
char *latitude;
latitude[0] = '4';
latitude[1] = '0';
latitude[2] = '5';
I want to multiply this values by 2. It must output 8,0,10 respectively. So i need to get the 4,2,6 values as integer. But if i use this arrays content as integer, it naturally outputs 52,48,53. I dont want to get the integer value which corresponds these ascii characters, i want to get the actual value as i see.