Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
146
func
DollarsAndTenthsOfCents(val float64) string {
147
return
"$"
+ Round(val, 3, 2)
148
}
149
150
func
DollarsMaxPrecision(val float64) string {
151
return
"$"
+ Round(val, 100, 2)
Callers
nothing calls this directly
Calls
1
Round
Function · 0.85
Tested by
no test coverage detected