mirror of https://github.com/apache/poi.git
[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:
parent
03d3f895dd
commit
e299b2d677
|
@ -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,2)", 0.66);
|
||||||
assertDouble(fe, cell, "PERCENTRANK.INC(A2:A11,8,4)", 0.6666);
|
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.INC(A2:A11,5)", 0.583);
|
||||||
|
assertDouble(fe, cell, "PERCENTRANK(A2:A11,1)", 0);
|
||||||
|
assertDouble(fe, cell, "PERCENTRANK(A2:A11,13)", 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,8 @@ public class TestPercentRank {
|
||||||
assertDouble(fe, cell, "PERCENTRANK(A2:A11,8,2)", 0.66);
|
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,8,4)", 0.6666);
|
||||||
assertDouble(fe, cell, "PERCENTRANK(A2:A11,5)", 0.583);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue