From 14b461420fc3d3b06b01d7b0584b422b3e1b40fb Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 18 Mar 2022 00:52:10 +0800 Subject: This fix scientific notation and page setup fields parsing issue --- rows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rows.go') diff --git a/rows.go b/rows.go index 81eaeeb..ec94c64 100644 --- a/rows.go +++ b/rows.go @@ -471,7 +471,7 @@ func roundPrecision(text string, prec int) string { if _, ok := decimal.SetString(text); ok { flt, _ := decimal.Float64() if prec == -1 { - return decimal.Text('G', 15) + return strconv.FormatFloat(flt, 'G', 15, 64) } return strconv.FormatFloat(flt, 'f', -1, 64) } -- cgit v1.2.1