Error when numeral(999.999).format('0,0.[00] a')

Author: tianxiualiCreated Aug 2, 2023Updated Sep 12, 2024

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".