adamwdraper / Numeral-js

A javascript library for formatting and manipulating numbers.
http://numeraljs.com
MIT License
9.65k stars 926 forks source link

Customizable thousands adamwdraper#680 #734

Open amm266 opened 2 years ago

amm266 commented 2 years ago

issue solved. thousands can be customized by putting zero before ,

var number = numeral(123456);
var string = number.format('00,0');
//12,34,56
var string = number.format('0000,0');
//12,3456

680