Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Storing latitude and longitude with sufficient precision


pokeeffe Mar 4, 2017 01:00 AM

I've observed storing lat/long values in IEEE4 truncates them beyond the precision of my sensor. I'm using a CR3000 which does not appear to have DOUBLE/IEEE8.

Before I break the value across two variables (degrees and decimal minutes components), does anyone have a novel solution? 


Anton Mar 4, 2017 04:31 PM

Multiply by 10^7 and store as LONG? 


JDavis Mar 6, 2017 06:52 PM

Multiplying wouldn't increas the resolution.

You can save the numbers as strings. You can't do any math operations on strings, and they take up more space. However, strings won't truncate the precision.


pokeeffe Mar 6, 2017 07:00 PM

Thanks, good suggestions. Think I'll just use two variables (FP2 & IEEE4). 

Log in or register to post/reply in the forum.