decimal-to-percent
Convert a decimal proportion to a percentage string
Converts any valid decimal value to a percentage string with no rounding or range limitations.
Install
$ npm install --save decimal-to-percent
Usage
var toPercent = //=> 10% //=> -10% //=> 0.1%
API
toPercent(decimal)
-> string
decimal
Required
Type: number
Any valid number between -Infinity
and Infinity
, exclusive.
License
MIT © Ben Drucker