summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--styles.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/styles.go b/styles.go
index d7b1460..c3a2393 100644
--- a/styles.go
+++ b/styles.go
@@ -909,7 +909,7 @@ func formatToC(i int, v string) string {
return v
}
f = f * 100
- return fmt.Sprintf("%d%%", int(f))
+ return fmt.Sprintf("%.f%%", f)
}
// formatToD provides a function to convert original string to special format