Android Question FIX GPS Coordinates / Decimal count and decimal cutter

Magma

Expert
Licensed User
Longtime User
Hi there...

i just wanna fix a little gps coordinates... the reason not changing position on map for no reason.

Cutting 2 or 3 decimals - what is the best (your opinion counts) ?

Any idea for fast decimal count or decimal cutting... ?

Thanks in advance
 

Ed Brown

Active Member
Licensed User
Longtime User
I'm not 100% sure what you are asking but I'm guessing you are referring to stationary drift? You can use
B4X:
NumberFormat2(gps, 3, 5, 5, False)
Change 'gps' to the variable you have for either the lat or lon.
The 5,5 is the minimum and maximum number of decimal places. Using 5 is used by quite a few GPS trackers on the market. Anything less and the accuracy starts to diminish noticeably.
 
Upvote 0
Top