MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / formatPercent

Function formatPercent

scripts/bench-ci-compare.mjs:698–703  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

696}
697
698function formatPercent(value) {
699 if (value === null || value === undefined || !Number.isFinite(value)) return "n/a";
700 const pct = value * 100;
701 const sign = pct >= 0 ? "+" : "";
702 return `${sign}${pct.toFixed(2)}%`;
703}
704
705function formatDelta(delta, deltaPct) {
706 if (delta === null || delta === undefined) return "n/a";

Callers 1

formatDeltaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected