Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortex-js/compute-engine
/ pct
Function
pct
scripts/fungrim/guard-census.ts:213–214 ·
view source on GitHub ↗
(n: number, d: number)
Source
from the content-addressed store, hash-verified
211
];
212
213
const
pct = (n: number, d: number): string =>
214
d === 0 ?
'—'
: `${((100 * n) / d).toFixed(1)}%`;
215
216
console.log(
217
`\nFungrim guard-dischargeability census — ${processed} entries with ` +
Callers
1
main
Function · 0.70
Calls
1
toFixed
Method · 0.80
Tested by
no test coverage detected