MCPcopy Create free account
hub / github.com/TanStack/ai / formatCurrency

Function formatCurrency

examples/ts-code-mode-web/src/lib/efficiency.ts:233–236  ·  view source on GitHub ↗
(amount: number)

Source from the content-addressed store, hash-verified

231}
232
233export function formatCurrency(amount: number): string {
234 if (amount < 0.01) return '<$0.01'
235 return `$${amount.toFixed(2)}`
236}

Callers 2

ContextSavingsFunction · 0.90
NoCodeMetricsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected