MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / FormatPrice

Function FormatPrice

utils/pricing.go:45–47  ·  view source on GitHub ↗

FormatPrice returns a display string like "$1.38/hr".

(hourlyPrice float64)

Source from the content-addressed store, hash-verified

43
44// FormatPrice returns a display string like "$1.38/hr".
45func FormatPrice(hourlyPrice float64) string {
46 return fmt.Sprintf("$%.2f/hr", hourlyPrice)
47}

Callers 5

ViewMethod · 0.92
ViewMethod · 0.92
runModifyFunction · 0.92
runCreateFunction · 0.92
TestFormatPriceFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestFormatPriceFunction · 0.68