MCPcopy Create free account
hub / github.com/anomalyco/opencode / formatNumber

Function formatNumber

packages/web/src/components/share/common.tsx:26–28  ·  view source on GitHub ↗
(value: number, locale: string)

Source from the content-addressed store, hash-verified

24}
25
26export function formatNumber(value: number, locale: string) {
27 return new Intl.NumberFormat(normalizeLocale(locale)).format(value)
28}
29
30export function formatCurrency(value: number, locale: string) {
31 return new Intl.NumberFormat(normalizeLocale(locale), {

Callers 3

ShareFunction · 0.90
ToolFooterFunction · 0.90
formatCountFunction · 0.70

Calls 1

normalizeLocaleFunction · 0.70

Tested by

no test coverage detected