Skip to content

Commit

Permalink
Fix to permyriad calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrjacobs committed May 10, 2017
1 parent dd1087a commit f956eba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public int getMean() {
* @return value at percentile (from cache if possible)
*/
public int getValueAtPercentile(double percentile) {
int permyriad = (int) percentile * 100;
int permyriad = (int) (percentile * 100);
switch (permyriad) {
case 0: return p0;
case 500: return p5;
Expand Down

0 comments on commit f956eba

Please sign in to comment.