Some browsers does not support maximumFractionDigits

This commit is contained in:
Bartek Fabiszewski 2020-07-18 19:23:16 +02:00
parent 1d2ef3f47f
commit f31e906167
4 changed files with 4 additions and 4 deletions

2
js/dist/1.bundle.js vendored

File diff suppressed because one or more lines are too long

2
js/dist/bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -159,7 +159,7 @@ export default class uLang {
*/ */
coordStr(pos, isLon) { coordStr(pos, isLon) {
const ipos = Math.trunc(pos); const ipos = Math.trunc(pos);
const dec = Math.abs((pos - ipos) * 60); const dec = Math.round((Math.abs((pos - ipos) * 60) + Number.EPSILON) * 100) / 100;
let dir; let dir;
if (isLon) { if (isLon) {