MCPcopy
hub / github.com/cortexlabs/cortex / DollarsAndTenthsOfCents

Function DollarsAndTenthsOfCents

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

Source from the content-addressed store, hash-verified

144}
145
146func DollarsAndTenthsOfCents(val float64) string {
147 return "$" + Round(val, 3, 2)
148}
149
150func DollarsMaxPrecision(val float64) string {
151 return "$" + Round(val, 100, 2)

Callers

nothing calls this directly

Calls 1

RoundFunction · 0.85

Tested by

no test coverage detected