getting numbers from an array in one number

hello
with this code i want to convert my degree , decimal minutes coordinates to degree coordinates.
my problem however is that i don't really understand how to get several numbers from an array in one single numer( like pos 0,1,2 of anarray[] to one single number in int number)

the array contains 5417.7540 on [2]
and contains 00735.9808 on [4] ( coordinates modified from my real location)
it is a 3d array of [15][11]

int latD;
int lonD;
double latX;
double lonX;
double latXX;
double lonXX;
double lat;
double lon;

 latD = (GPS.arguments[2][0,1]);
 lonD = (GPS.arguments[4][2]);
 latX = (double)GPS.arguments[2][2, 3, 5, 6, 7, 8];
 lonX = (double)GPS.arguments[4][3, 4, 6, 7, 8, 9];
 latXX = (latX / 60);
 lonXX = (lonX / 60);
 lat = (latD + latXX);
 lon = (lonD + lonXX);

 
 Serial.println("next are the latD-lonD-latX-lonX-latXX-lonXX");
 Serial.println(latD);
 Serial.println(lonD); 
 Serial.println(latX);
 Serial.println(lonX); 
 Serial.println(latXX);
 Serial.println(lonXX);

this is a part of the big code but this converts my coordinates. though it does not work :-[

thank you
regards diamantmatch

If the array is of type char, and are properly NULL terminated, you can use the atoi, atol, and atof functions to convert the strings to integers, longs, and floats, respectively.

how do i use atoi then ?
like this?:

latD = (atol((char)GPS.arguments[2][0,1]));

what do you mean by properly NULL terminated ? that the last char of the array is null?

latD = (atol((char)GPS.arguments[2][0,1]));

This is not valid code. At least not in terms of what you expect it to do.

This suggests to me that GPS.arguments is an array of strings. Strings are arrays of characters.

If that is the case, you would want to call that function like this:

latD = atol(GPS.arguments[2]);