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