Some browsers does not support maximumFractionDigits
This commit is contained in:
parent
1d2ef3f47f
commit
f31e906167
2
js/dist/1.bundle.js
vendored
2
js/dist/1.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
js/dist/bundle.js
vendored
2
js/dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
2
js/dist/bundle.js.map
vendored
2
js/dist/bundle.js.map
vendored
File diff suppressed because one or more lines are too long
@ -159,7 +159,7 @@ export default class uLang {
|
||||
*/
|
||||
coordStr(pos, isLon) {
|
||||
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;
|
||||
|
||||
if (isLon) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user