mikalhart / TinyGPSPlus

A new, customizable Arduino NMEA parsing library
http://arduiniana.org
1.05k stars 486 forks source link

Do gps.location.rawLat().billionths need zero padding? #58

Closed gregcope closed 4 years ago

gregcope commented 5 years ago

Hi,

If gps.location.rawLat().billionths returns a smaller number do these not need to be padded?

Serial.println(gps.location.rawLat().billionths) here .. (and line 51 below)

https://github.com/mikalhart/TinyGPSPlus/blob/master/examples/KitchenSink/KitchenSink.ino#L46

mikalhart commented 4 years ago

I see your point. If I was displaying these values after a decimal point, I would definitely need to left pad with zeros sometimes. But I think in this format ("[+xxx billionths]") it should be pretty clear.