percentile-rank

1.0.6 • Public • Published

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

Package Sidebar

Install

npm i percentile-rank

Weekly Downloads

365

Version

1.0.6

License

MIT

Unpacked Size

3.1 kB

Total Files

4

Last publish

Collaborators

  • malcolmvr