Skip to content

Commit

Permalink
fix: add nm => m conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Feb 2, 2020
1 parent 618bcb9 commit d5af9b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
// NM
if(inputFormat == 'nm') {
if(outputFormat == 'km') return value / utils.RATIOS.KM_IN_NM;
if(outputFormat == 'm') return value * 1000 / utils.RATIOS.KM_IN_NM ;
}

// KNOTS
Expand Down

0 comments on commit d5af9b5

Please sign in to comment.