MCPcopy Index your code
hub / github.com/cortexlabs/cortex / DollarsAndCents

Function DollarsAndCents

pkg/lib/strings/stringify.go:142–144  ·  view source on GitHub ↗
(val float64)

Source from the content-addressed store, hash-verified

140}
141
142func DollarsAndCents(val float64) string {
143 return "$" + Round(val, 2, 2)
144}
145
146func DollarsAndTenthsOfCents(val float64) string {
147 return "$" + Round(val, 3, 2)

Callers

nothing calls this directly

Calls 1

RoundFunction · 0.85

Tested by

no test coverage detected