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

Function signed

bench/diff.js:167–170  ·  view source on GitHub ↗
(n, digits = 3)

Source from the content-addressed store, hash-verified

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);
169 return n >= 0 ? `+${s}` : s;
170}
171
172function render(baseSum, featSum, moves, v, threshold, basePath, featPath) {
173 const deltaReward = featSum.reward - baseSum.reward;

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected