Created
September 8, 2017 04:50
-
-
Save andygimma/f72bb437e362d158b928f97af15da7a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function convertDecimalsToDegrees(num) { | |
var integer = num.toString().split('.')[0] | |
var decimal = '.' + num.toString().split('.')[1] | |
var convert = decimal * 60; | |
var min = convert.toString() | |
return integer + ' ' + min; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment