Android Question Fixing GPS coordinates to 7 digits in decimal

Pd65

New Member
Can anyone suggest me which APP(fake location/location changer/GPS enumerator etc) should I use to get decimals to 7 digits only in fake GPS coordinates ?? Or what should I do in already available APPs to get only 7 digits in GPS coordinates?
 

drgottjr

Expert
Licensed User
Longtime User
B4X:
    Dim lat As Double = 63.07769542931624
    Dim lng As Double = -23.625000000000014
    Log( NumberFormat(lat, 1,7))
    Log( NumberFormat(lng,1,7))
    Log(NumberFormat2(lng, 1, 7,7,False))

numberformat() "fails" if coordinate doesn't round to required decimals places (see above case). numberformat2() will force the required decimal places
 
Upvote 0
Top