sheetjs icon indicating copy to clipboard operation
sheetjs copied to clipboard

Error on formats with "#" right of the decimal place (like "$#,###.00##")

Open bryanbraun opened this issue 7 years ago • 0 comments

When adding # symbols to the right of the decimal (like in a currency) I'm getting errors like Error: unsupported format |#,###.00##|

Here's an example:

console.log(SSF.format('$#,###.00', 1.1111));
// "$1.11"
//
// Working!

console.log(SSF.format('$#,###.00##', 1.1111));
// Uncaught Error: unsupported format |#,###.00##|
//
// Not working!
// Expected: "$1.1111"

bryanbraun avatar Jun 09 '18 23:06 bryanbraun