aboutsummaryrefslogtreecommitdiff
path: root/src/rtodms.c
diff options
context:
space:
mode:
authorCharles Karney <charles@karney.com>2015-08-13 13:11:58 -0400
committerCharles Karney <charles@karney.com>2015-08-13 13:11:58 -0400
commit86b2155cf14a205951a41cc2ce8d574feedde03a (patch)
tree09403834c66ba933fd7fa398c21841f4d046287d /src/rtodms.c
parent6c16367e152747133bba7a8fbcdbabef1232cd93 (diff)
downloadPROJ-86b2155cf14a205951a41cc2ce8d574feedde03a.tar.gz
PROJ-86b2155cf14a205951a41cc2ce8d574feedde03a.zip
Fix the constants used for degree/radian conversions.
In dmstor.c an inaccurate constant was used for pi/180. This meant that 90deg converted to radians and back to degrees gave a result which was larger than 90deg. The constant has been replaced by DEG_TO_RAD (defined in proj_api.h). In rtodms.c, the trailing digits in CONV were wrong; the constant has been truncated so that all the digits are corrent.
Diffstat (limited to 'src/rtodms.c')
-rw-r--r--src/rtodms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtodms.c b/src/rtodms.c
index abf6bc1c..591874a6 100644
--- a/src/rtodms.c
+++ b/src/rtodms.c
@@ -10,7 +10,7 @@
static double
RES = 1000.,
RES60 = 60000.,
-CONV = 206264806.24709635515796003417;
+CONV = 206264806.24709635516;
static char
format[50] = "%dd%d'%.3f\"%c";
static int