diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-05 08:25:33 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-05 10:33:58 -0800 |
commit | 708df33539ef3b6d3cfde435df93fd4475cdde75 (patch) | |
tree | 7fbc0c287d0d06feac66d7895a412215c4f73b11 /uemis.c | |
parent | 1e074f3fb2a933ec5cadb0129cb1d71f8be351c3 (diff) | |
download | subsurface-708df33539ef3b6d3cfde435df93fd4475cdde75.tar.gz |
Save latitude/longitude using integer math
I hate using floating point, this tries to at least make parts of it be
integer logic, and avoid the whole locale issue. This still keeps the
latitude and longitude internally as a floating point value, and parses
it that way, but I'm slowly moving towards less and less FP use.
We're going to use micro-degrees for location information: that's
sufficient to about a tenth of a meter precision, and it fits in a
32-bit integer.
If you specify dive sites with more precision than that, you may have
OCD.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis.c')
0 files changed, 0 insertions, 0 deletions