Skip to content

Commit

Permalink
Some code refactor (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyxis committed Mar 5, 2021
1 parent 0683632 commit d36053e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/calculator/UnitCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export function displayFtOnly(ft: string): string {
}

export function displayFtMFloor(ft: number): string {
const floor = Math.floor(ft);
return displayFtM(floor.toString());
return displayFtM(Math.floor(ft).toString());
}

export function calculateTotalDistance(nm: string[]): string {
Expand Down

0 comments on commit d36053e

Please sign in to comment.