I want to convert meters to miles in JavaScript.
For example 12700 meters is 7.8867 miles.
What formula can I use to do the conversion?
function getMiles(meters) {
return meters*0.000621371192;
}
function getMeters(miles) {
return miles*1609.344;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With