summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
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 8eb0587..2986f16 100644
--- a/styles.go
+++ b/styles.go
@@ -852,7 +852,7 @@ func formatToInt(v, format string, date1904 bool) string {
if err != nil {
return v
}
- return fmt.Sprintf("%d", int64(f))
+ return fmt.Sprintf("%d", int64(math.Round(f)))
}
// formatToFloat provides a function to convert original string to float