Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
49
const
formatInt = (n: number): string =>
50
new
Intl.NumberFormat(undefined).format(Math.max(0, Math.floor(n)));
51
52
const
formatDataRate = (bytesPerSec: number): string => {
53
const
kbps = bytesPerSec / 1024;
Callers
1
streamFrame
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected