MCPcopy Index your code
hub / github.com/Doorman11991/smallcode / pct

Function pct

bench/diff.js:165–165  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

163function paint(text, code) { return colorize ? `${code}${text}${C.reset}` : text; }
164
165function pct(n) { return `${(n * 100).toFixed(1)}%`; }
166function ms(n) { return `${(n / 1000).toFixed(1)}s`; }
167function signed(n, digits = 3) {
168 const s = n.toFixed(digits);

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected