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

/percentile-rank/

    Package Sidebar

    Install

    npm i percentile-rank

    Weekly Downloads

    260

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    3.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • malcolmvr