-
Notifications
You must be signed in to change notification settings - Fork 943
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: mfedderly <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
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
f207991
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Distance calculation problem
I am trying to get the distance of these two coordinates. First I convert the DMS to DD coordinates, then I use toFixed to only use 3 decimal places. When executed, the answer is 340.360, but the correct answer is 340.871, a difference of 0.511 thousandths.
Means:
Calculation correctly: http://boulter.com/gps/distance
Written code
Correct answer