Yes. Put the optional decimals in brackets:
numeral(1234).format('0,0.[00]');
// output: 1,234
numeral(1234.567).format('0,0.[00]');
// output: 1,234.57
Yes. Put the optional decimals in brackets:
numeral(1234).format('0,0.[00]');
// output: 1,234
numeral(1234.567).format('0,0.[00]');
// output: 1,234.57