summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/rows.go b/rows.go
index 1e29d8f..44c4b64 100644
--- a/rows.go
+++ b/rows.go
@@ -20,6 +20,7 @@ import (
"log"
"math"
"strconv"
+ "strings"
"github.com/mohae/deepcopy"
)
@@ -345,7 +346,8 @@ func (c *xlsxC) getValueFrom(f *File, d *xlsxSST) (string, error) {
}
return f.formattedValue(c.S, c.V), nil
default:
- if len(c.V) > 16 {
+ splited := strings.Split(c.V, ".")
+ if len(splited) == 2 && len(splited[1]) > 15 {
val, err := roundPrecision(c.V)
if err != nil {
return "", err