#75 more decimals

This commit is contained in:
Keith Paterson 2020-12-31 17:17:58 +01:00
parent 4c0f09e8d9
commit 03c3956d94

View File

@ -278,7 +278,7 @@ var convertLat = function (latlng) {
var deg = mathjs.floor(mathjs.abs(latlng.lat)); var deg = mathjs.floor(mathjs.abs(latlng.lat));
var min = (mathjs.abs(latlng.lat) - deg) * 60; var min = (mathjs.abs(latlng.lat) - deg) * 60;
// console.debug(NS + deg + " " + min); // console.debug(NS + deg + " " + min);
return NS + String(deg).padStart(2, '0') + " " + mathjs.round(min, 3); return NS + String(deg).padStart(2, '0') + " " + mathjs.round(min, 6);
} }
var convertLon = function (latlng) { var convertLon = function (latlng) {
@ -287,7 +287,7 @@ var convertLon = function (latlng) {
var deg = mathjs.floor(mathjs.abs(latlng.lng)); var deg = mathjs.floor(mathjs.abs(latlng.lng));
var min = (mathjs.abs(latlng.lng) - deg) * 60; var min = (mathjs.abs(latlng.lng) - deg) * 60;
// console.debug(NS + deg + " " + min); // console.debug(NS + deg + " " + min);
return NS + String(deg).padStart(2, '0') + " " + mathjs.round(min, 3); return NS + String(deg).padStart(2, '0') + " " + mathjs.round(min, 6);
} }
var styleArc = function (attributes, arc) { var styleArc = function (attributes, arc) {