UBLOX ZED data conversion

Following your sample code. I am getting lat and lon data. But after I divide them by 10,000,000. The last few digit were zero out. Please advise…

gpsInfo.lat = myGPS.getLatitude();

gpsInfo.lat /= 10000000;

gpsInfo.lon = myGPS.getLongitude();

gpsInfo.lon /= 10000000;

Thank you.

Hi Donald,

Which example are you following? Are you using the [Get Position example or something else?](SparkFun_Ublox_Arduino_Library/examples/Example3_GetPosition/Example3_GetPosition.ino at master · sparkfun/SparkFun_Ublox_Arduino_Library · GitHub)

Yes, Get Position Sample. It gives me a string of numbers without a “period”. I need to divide it by 10000000 to be able to use it.