toFixed
Converts a number into a string, keeping a specified number of decimals.
Install
$ npm install --save tofixed
Usage
var toFixed = ; // API// - toFixed(number, precision) ;// => '5.57'
Note: it will return a fixed number of at most precision
digits after the decimal.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.