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

Function formatInt

examples/worker-streaming/main.ts:49–50  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

47};
48
49const formatInt = (n: number): string =>
50 new Intl.NumberFormat(undefined).format(Math.max(0, Math.floor(n)));
51
52const formatDataRate = (bytesPerSec: number): string => {
53 const kbps = bytesPerSec / 1024;

Callers 1

streamFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected