diff options
author | xuri <xuri.me@gmail.com> | 2022-05-23 13:02:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 13:02:11 +0800 |
commit | afb2d27c90130878b82a70b44ccb4e30344cc09e (patch) | |
tree | bcab578db24cf82c974fe0d92ac82dfd37f37ffe /calc.go | |
parent | 63adac25897f295ef4493e060d917650f03ebd3b (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.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |