MCPcopy
hub / github.com/xlenore/psx-covers / format_percent

Function format_percent

tools/update_stats.py:42–45  ·  view source on GitHub ↗
(available: int, total: int)

Source from the content-addressed store, hash-verified

40
41
42def format_percent(available: int, total: int) -> str:
43 if total == 0:
44 return "0.00%"
45 return f"{available/total*100:.2f}%"
46
47
48def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected