MCPcopy Create free account
hub / github.com/winfunc/opcode / formatNumber

Function formatNumber

src/components/UsageDashboard.original.tsx:94–96  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

92 };
93
94 const formatNumber = (num: number): string => {
95 return new Intl.NumberFormat('en-US').format(num);
96 };
97
98 const formatTokens = (num: number): string => {
99 if (num >= 1_000_000) {

Callers 3

formatTokensFunction · 0.85
UsageDashboardFunction · 0.85
UsageDashboardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected