[bug-49202] add PERCENTRANK.INC function

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892082 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-08-07 15:02:49 +00:00
parent 03d3f895dd
commit e299b2d677
2 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,8 @@ public class TestPercentRankIncFunction {
assertDouble(fe, cell, "PERCENTRANK.INC(A2:A11,8,2)", 0.66);
assertDouble(fe, cell, "PERCENTRANK.INC(A2:A11,8,4)", 0.6666);
assertDouble(fe, cell, "PERCENTRANK.INC(A2:A11,5)", 0.583);
assertDouble(fe, cell, "PERCENTRANK(A2:A11,1)", 0);
assertDouble(fe, cell, "PERCENTRANK(A2:A11,13)", 1);
}
}

View File

@ -47,6 +47,8 @@ public class TestPercentRank {
assertDouble(fe, cell, "PERCENTRANK(A2:A11,8,2)", 0.66);
assertDouble(fe, cell, "PERCENTRANK(A2:A11,8,4)", 0.6666);
assertDouble(fe, cell, "PERCENTRANK(A2:A11,5)", 0.583);
assertDouble(fe, cell, "PERCENTRANK(A2:A11,1)", 0);
assertDouble(fe, cell, "PERCENTRANK(A2:A11,13)", 1);
}
}