MCPcopy Index your code
hub / github.com/coder/coder / formatMicrosAsDollars

Function formatMicrosAsDollars

coderd/x/chatd/chatd.go:1439–1441  ·  view source on GitHub ↗
(micros int64)

Source from the content-addressed store, hash-verified

1437}
1438
1439func formatMicrosAsDollars(micros int64) string {
1440 return "$" + decimal.NewFromInt(micros).Shift(-6).StringFixed(2)
1441}
1442
1443func (e *UsageLimitExceededError) Error() string {
1444 return fmt.Sprintf(

Callers 1

ErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected