Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 599 Bytes

Readme.md

File metadata and controls

44 lines (27 loc) · 599 Bytes

Percantage-value

Description

Simple percentage calculations.

☁️ Installation

$ npm i --save percent-value

or

<script src="percantage-value.js"></script>

Usage

const percentage = require('percantage-value');

Examples

For calculating how much is a percent of a number, use the of method:

percentage.of(50, 100); // will return 50

If you'd like to calculate percent of a number from another number, use the from method:

percentage.from(70, 100); // will return 70


Enjoy!