percentile returns always an integer
This commit is contained in:
parent
8cbbae8984
commit
55efe367bf
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class Array
|
|||
values = self.sort
|
||||
|
||||
if values.empty?
|
||||
return []
|
||||
return 0
|
||||
elsif values.size == 1
|
||||
return values.first
|
||||
elsif p == 100
|
||||
|
|
Loading…
Reference in a new issue