So I made variables of data type double lat and long equal
gps.location.lat()
and
gps.location.lng()
respectively. However when I serial print it only prints 2 decimal places which can't be used for a gps coordinate. How do I get it to print the full value?
I've tried long double, long float, char lat[128], long[128], unsigned long but all have issues when trying to Serial.print or they dont change the length of the value.
You really need to study and learn the language (Arduino) before posting questions that clearly reveal you have not read some of the most basic syntax. READ THIS
Also, the value that's printed is only what is formatted for print and not the value itself. In any math calculation, the full value is used. If transmitting, learn the print and write functions.