MCPcopy Create free account
hub / github.com/github/gh-aw / formatPercent

Function formatPercent

pkg/cli/audit_math_helpers.go:17–19  ·  view source on GitHub ↗

formatPercent formats a float percentage with no decimal places

(pct float64)

Source from the content-addressed store, hash-verified

15
16// formatPercent formats a float percentage with no decimal places
17func formatPercent(pct float64) string {
18 return fmt.Sprintf("%.0f%%", pct)
19}
20
21// formatVolumeChange formats the volume change as a human-readable string
22func formatVolumeChange(total1, total2 int) string {

Callers 1

formatVolumeChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected