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

Function formatPercent

examples/sampling/main.ts:118–118  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

116const clampInt = (n: number, min: number, max: number): number => Math.max(min, Math.min(max, n | 0));
117
118const formatPercent = (n: number): string => `${n.toFixed(2)}%`;
119
120const computeZoomAwareTarget = (baseThreshold: number, spanFrac: number): number => {
121 // Mirrors createRenderCoordinator’s behavior:

Callers 1

updateReadoutsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected