summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-09 14:19:16 +1200
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-09 14:19:16 +1200
commit0f9d1757a4590f554bcfc87f79c7a72baa5ad95d (patch)
treea7bab69bebb9d08a23bc29ee9ead6adcb42afd88 /README
parent4c6f142e85969708983e2ffd7d413e01ac84b176 (diff)
downloadsubsurface-0f9d1757a4590f554bcfc87f79c7a72baa5ad95d.tar.gz
Don't drop precision from floating point GP coordinates
Using '%f' limits the precision to 6 decimals, which may well be perfectly ok. But at least in theory you *could* have higher precision, and gps units will report it, so don't mindlessly limit us to what %f shows. This arbitrarily uses '%.12g' instead. %g will drop excess zeroes at the end, so it actually results in the same (or shorter) ascii representation unless you have the extra precision. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions