edit comp degree

This commit is contained in:
madarsbiss 2021-09-25 14:28:48 +03:00
parent 4e389c258e
commit 88b4db25a2

View File

@ -10,7 +10,7 @@ export const timeTo12HourFormat = (time) => {
};
export const degToCompass = (num) => {
var val = Math.floor(num / 22.5 + 0.5);
var val = Math.round(num / 22.5);
var arr = [
"N",
"NNE",
@ -19,7 +19,7 @@ export const degToCompass = (num) => {
"E",
"ESE",
"SE",
"S/SE",
"SSE",
"S",
"SSW",
"SW",