Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gradsToDegr(grad) {
- let diffDeg = 400 / 360;
- let convertGradToDeg = Number(grad) / diffDeg;
- convertGradToDeg = convertGradToDeg % 360;
- if (convertGradToDeg < 0) {
- convertGradToDeg += 360;
- }
- console.log(convertGradToDeg)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement