Created
September 21, 2017 07:24
-
-
Save skomarfaruque/607db40cdd93bfd17e10da73e884d530 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//radius calculation | |
switch(radius_unit) | |
{ | |
case "Meters": { input_value = meters; break;} | |
case "KM": { input_value = meters/1000; break;} | |
case "Feet": { input_value = meters*3.28084; break;} | |
case "Miles": { input_value = meters*0.000621371; break;} | |
default : | |
{ | |
alert("Invalid radius unit"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment