summaryrefslogtreecommitdiff
path: root/gpsdclient.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-02-21 15:46:22 -0800
committerGary E. Miller <gem@rellim.com>2019-02-21 15:46:22 -0800
commit0e4684abb7058f36eea60abba5124d019f9bc01b (patch)
tree769afff5404b5fd970afdca596f9a152ec52ca9d /gpsdclient.c
parentc40b62c5b409aa97acfa397e94dfb40198c62ea0 (diff)
downloadgpsd-0e4684abb7058f36eea60abba5124d019f9bc01b.tar.gz
deg_to_s(): Add more tests. Not all 'good'.
deg_to_s() needs to do better rounding.
Diffstat (limited to 'gpsdclient.c')
-rw-r--r--gpsdclient.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpsdclient.c b/gpsdclient.c
index 880206ef..8ca605d4 100644
--- a/gpsdclient.c
+++ b/gpsdclient.c
@@ -35,6 +35,10 @@ static struct exportmethod_t exportmethods[] = {
* deg_ddmm : return DD MM.mmmmmm'
* deg_ddmmss : return DD MM' SS.sssss"
*
+ * returns 'nan' for 0 > f or 360 < f
+ *
+ * NOTE: degrees must be positive.
+ *
* for cm level accuracy we need degrees to 7+ decimal places
* Ref: https://en.wikipedia.org/wiki/Decimal_degrees
*