diff options
Diffstat (limited to 'rows.go')
-rw-r--r-- | rows.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |