Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeecave committed Feb 26, 2019
1 parent 2cd3eb7 commit 0343a8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,7 @@ func TimeInLoc(t time.Time, loc string) (time.Time, error) {
}
return t.In(l), nil
}

func FormatMoney(dec float64) string {
return "$" + strconv.FormatFloat(ToFixed(dec, 2), 'f', 2, 64)
}

0 comments on commit 0343a8e

Please sign in to comment.