percentile-rank
v1.0.6
Published
Returns the percentile of a value.
Downloads
1,987
Readme
percentile-rank
Returns the percentile of a value. Returns the same values as the Excel PERCENTRANK and PERCENTRANK.INC functions.
Usage
npm install percentile-rank
const percentRank = require('percentile-rank');
percentRank([1, 5, 20, 50, 55, 60, 70, 80, 90, 100], 44);
Credits
Initially based on the answer provided by xlecoustillier On Stack Overflow: https://stackoverflow.com/questions/17919263/what-is-the-excel-percentrank-algorithm-in-c