diff options
author | xuri <xuri.me@gmail.com> | 2021-07-12 00:02:39 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-07-12 00:02:39 +0800 |
commit | f62c45fe0c111774fc69a31a42d5f3add10e5095 (patch) | |
tree | 1fc13047bcf4c8c410c90f029581a534c1b9c377 /rows.go | |
parent | b14b74bf560f192f658d66fdbf719190f691bc5f (diff) |
This closes #848 and closes #852, fix reading decimals precision
Diffstat (limited to 'rows.go')
-rw-r--r-- | rows.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -378,7 +378,7 @@ func (c *xlsxC) getValueFrom(f *File, d *xlsxSST) (string, error) { return f.formattedValue(c.S, c.V), nil default: isNum, precision := isNumeric(c.V) - if isNum && precision > 15 { + if isNum && precision > 10 { val, _ := roundPrecision(c.V) if val != c.V { return f.formattedValue(c.S, val), nil |