MCPcopy Create free account
hub / github.com/modem-dev/hunk / formatValue

Function formatValue

benchmarks/run.ts:149–154  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

147}
148
149function formatValue(value: number) {
150 if (Math.abs(value) >= 100) {
151 return value.toFixed(1);
152 }
153 return value.toFixed(2);
154}
155
156const options = parseArgs(Bun.argv.slice(2));
157const scripts = options.scripts.length > 0 ? options.scripts : [...defaultScripts];

Callers 1

run.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected