Skip to content

ubaidisaev/percentage-value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

Percentage converting helper functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published