rapid-spreadjs 1.0.107 → 1.0.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -21061,7 +21061,7 @@ const FormulaUtils = {
21061
21061
  }
21062
21062
  }
21063
21063
  // 提取前6个值进行计算
21064
- const values = [val1, val2, val3, val4, val5, val6];
21064
+ const values = [parseFloat(val1), parseFloat(val2), parseFloat(val3), parseFloat(val4), parseFloat(val5), parseFloat(val6)];
21065
21065
  // 计算初始平均值avg
21066
21066
  const sum = values.reduce((acc, val) => preciseCalc(acc, val, 'add'), 0);
21067
21067
  const avg = preciseCalc(sum, values.length, 'div');