Skip to content

Commit

Permalink
Added numFormatNone for INTERCEPT formula
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryOrlov committed Oct 25, 2023
1 parent 44bca00 commit 68bdd37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions cell/model/FormulaObjects/parserFormula.js
Original file line number Diff line number Diff line change
Expand Up @@ -5099,7 +5099,6 @@ _func[cElementType.cellsRange][cElementType.cellsRange] = function ( arg0, arg1,

_func[cElementType.array][cElementType.array] = function ( arg0, arg1, what, bbox, bIsSpecialFunction ) {
if (bIsSpecialFunction) {
// ?
let specialArray = specialFuncArrayToArray(arg0, arg1, what);
if(null !== specialArray){
return specialArray;
Expand Down Expand Up @@ -8764,7 +8763,6 @@ function parserFormula( formula, parent, _ws ) {
}

function specialFuncArrayToArray(arg0, arg1, what) {
// ?
let retArr = null, _arg0, _arg1;
let iRow, iCol;
if (arg0.getRowCount() === arg1.getRowCount() && 1 === arg0.getCountElementInRow()) {
Expand Down
2 changes: 1 addition & 1 deletion cell/model/FormulaObjects/statisticalFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7217,10 +7217,10 @@ function (window, undefined) {
cINTERCEPT.prototype.name = 'INTERCEPT';
cINTERCEPT.prototype.argumentsMin = 2;
cINTERCEPT.prototype.argumentsMax = 2;
cINTERCEPT.prototype.numFormat = AscCommonExcel.cNumFormatNone;
cINTERCEPT.prototype.arrayIndexes = {0: 1, 1: 1};
cINTERCEPT.prototype.argumentsType = [argType.array, argType.array];
cINTERCEPT.prototype.Calculate = function (arg) {

function intercept(y, x) {

var fSumDeltaXDeltaY = 0, fSumSqrDeltaX = 0, _x = 0, _y = 0, xLength = 0, i;
Expand Down

0 comments on commit 68bdd37

Please sign in to comment.