summaryrefslogtreecommitdiff
path: root/calc.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-23 13:02:11 +0800
committerGitHub <noreply@github.com>2022-05-23 13:02:11 +0800
commitafb2d27c90130878b82a70b44ccb4e30344cc09e (patch)
treebcab578db24cf82c974fe0d92ac82dfd37f37ffe /calc.go
parent63adac25897f295ef4493e060d917650f03ebd3b (diff)
This fix formula calculation accuracy issue and panic when set pane
- Fix `GROWTH` and `TREND` calculation accuracy issue - Fix panic when add pane on empty sheet views worksheet - New exported constants `MinFontSize`
Diffstat (limited to 'calc.go')
-rw-r--r--calc.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/calc.go b/calc.go
index f71f3e8..8a80fb5 100644
--- a/calc.go
+++ b/calc.go
@@ -4579,8 +4579,7 @@ func newFormulaArgMatrix(numMtx [][]float64) (arg [][]formulaArg) {
for r, row := range numMtx {
arg = append(arg, make([]formulaArg, len(row)))
for c, cell := range row {
- decimal, _ := big.NewFloat(cell).SetPrec(15).Float64()
- arg[r][c] = newNumberFormulaArg(decimal)
+ arg[r][c] = newNumberFormulaArg(cell)
}
}
return