Open tianxiuali opened 1 year ago
I have a similar problem, but there should be no spaces in your formatting.
// should be 1k
console.log(numeral(999.999).format("0,0.[00]a")); // 1,000
// that's right
console.log(numeral(999999.999).format("0,0.[00]a")); // 1m
Example:
numeral(999.999).format('0,0.[00] a')
The result is "1", not "1 k".
Also in another example:
numeral(999999.999).format('0,0.[00] a')
The result is "1 k", not "1 m".