What is wrong with this String?

This is my string:

String pos = String(gps.location.lat(), 5)) + String(gps.location.lng(), 4));

And the error is :

error: expected ',' or ';' before ')' token

Apimyself:
This is my string:

String pos = String(gps.location.lat(), 5)) + String(gps.location.lng(), 4));

And the error is :

error: expected ',' or ';' before ')' token

String pos = String(gps.location.lat(), 5) + String(gps.location.lng(), 4);

You can save yourself a lot of memory (and potential problems later) by using char arrays instead of the String class.

wvmarle:
You can save yourself a lot of memory (and potential problems later) by using char arrays instead of the String class.

Thanks in advice!

Having said that, the problem you are having with that line not compiling is pretty simple.

Apimyself:
This is my string:

String pos = String(gps.location.lat(), 5)) + String(gps.location.lng(), 4));

And the error is :

error: expected ',' or ';' before ')' token

In that line of code you have some opening brackets and some closing brackets, it seems reasonable that there is should a matching number of opening brackets and closing brackets.

Is there ?