Closed bluesmoon closed 13 years ago
Thanks for the contribution, at first glace these look good to me, I'll look into it more today and get it merged in.
There may be an off by one bug in my code for some cases. I'm investigating and will add a patch today if needed.
hello world
The current implementation of the percentile method will return undefined for anything that does not result in a whole number when multiplied by the length.
This patch makes sure that percent * length is always a whole number greater than 0.