summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
Diffstat (limited to 'styles.go')
-rw-r--r--styles.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/styles.go b/styles.go
index 6ef7dcb..b7b1525 100644
--- a/styles.go
+++ b/styles.go
@@ -901,7 +901,7 @@ func formatToC(v, format string, date1904 bool) string {
if err != nil {
return v
}
- f = f * 100
+ f *= 100
return fmt.Sprintf("%.f%%", f)
}
@@ -912,7 +912,7 @@ func formatToD(v, format string, date1904 bool) string {
if err != nil {
return v
}
- f = f * 100
+ f *= 100
return fmt.Sprintf("%.2f%%", f)
}