MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / formatNumber

Function formatNumber

examples/worker-rendering/main.ts:179–181  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

177}
178
179function formatNumber(n: number): string {
180 return new Intl.NumberFormat().format(Math.floor(n));
181}
182
183function formatBytes(bytes: number): string {
184 if (bytes < 1024) return `${bytes} B`;

Callers 4

updateTotalPointsDisplayFunction · 0.70
updateMetricsDisplayFunction · 0.70
handleGenerateFunction · 0.70
streamFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected