@does/percent

0.0.2 • Public • Published

percent

A round percentage of a number from the whole

const percent = require('@does/percent');

// percent(part, whole):

percent(150, 200) // 75
percent(200, 150) // 133

Transpiled version

Environments which exclude node_modules from the transpiling pipeline should include the "browser" entry instead of "main". This exposes an ES5 commonjs module.

Also available for explicit import:

const percent = require('@does/percent/dist');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1,444
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1,444
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i @does/percent

Weekly Downloads

1,444

Version

0.0.2

License

MIT

Unpacked Size

2 kB

Total Files

4

Last publish

Collaborators

  • omrilotan