summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorWXDYGR <33148310+WXDYGR@users.noreply.github.com>2020-08-05 20:33:12 +0800
committerGitHub <noreply@github.com>2020-08-05 20:33:12 +0800
commit1c2e7c5c68f15739112e9c06d238b81318af0c97 (patch)
tree23cfd38eefeddacedd9a6d3f1ed7b9dbc5abed06 /styles.go
parentee35497935cac81b951d3a7b4f9dc3902c70e37c (diff)
Update styles.go
修复获取百分比值时,GetCellValue返回值不准确的问题
Diffstat (limited to 'styles.go')
-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