MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / formatRate

Function formatRate

src/eval/edit-preflight-harness.ts:183–189  ·  view source on GitHub ↗
(value: number | null)

Source from the content-addressed store, hash-verified

181}
182
183function formatRate(value: number | null): string {
184 if (value === null) {
185 return 'n/a';
186 }
187
188 return `${(value * 100).toFixed(0)}%`;
189}
190
191function formatHit(value: number | null): string {
192 return value === null ? 'n/a' : value.toFixed(2);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected