Skip to content

Commit 0343a8e

Browse files
committed
fix
1 parent 2cd3eb7 commit 0343a8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

helpers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,7 @@ func TimeInLoc(t time.Time, loc string) (time.Time, error) {
153153
}
154154
return t.In(l), nil
155155
}
156+
157+
func FormatMoney(dec float64) string {
158+
return "$" + strconv.FormatFloat(ToFixed(dec, 2), 'f', 2, 64)
159+
}

0 commit comments

Comments
 (0)