Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

New answers tagged

0

Some findings: Your for loop iterates over 71 results, but your array has only the length 70. You may overwrite variables in the memory behind the array. You can use else instead of else if (i >= 70 * 0.1) because it is just the negation of the if (i < 70 * 0.1). In the else case (i >= 70 * 0.1) is always true. What is the type of myVariable? ...


1

If you want 4 decimal places, you may try something like this: gps_string = String(gps.location.lat(), 4) + " x " + String(gps.location.lng(), 4);


Top 50 recent answers are included