1.0.1 • Published 5 years ago

fmtnum v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

FmtNUM

Format number.

Install

npm install fmtnum

Use

var num = 42;
var decm = 2;   // decimal places (default: 2)
var tsep = '.'; // thousands separator (default: '')
var dsep = '.'; // decimals separator (default: '.')
num = fmtnum(num, decm, tsep, dsep);
console.log(num);
1.0.1

5 years ago

1.0.0

5 years ago