summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-08-05 20:54:15 +0800
committerGitHub <noreply@github.com>2020-08-05 20:54:15 +0800
commitfcbc7e3f88fd016b62928c89623645758c1291ee (patch)
tree23cfd38eefeddacedd9a6d3f1ed7b9dbc5abed06 /styles.go
parentee35497935cac81b951d3a7b4f9dc3902c70e37c (diff)
parent1c2e7c5c68f15739112e9c06d238b81318af0c97 (diff)
Merge pull request #681 from WXDYGR/master
Fixed GetCellValue percentage accuracy
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