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

Open
opened 2018-06-09 23:52:42 +00:00 by bryanbraun · 0 comments
bryanbraun commented 2018-06-09 23:52:42 +00:00 (Migrated from github.com)

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"
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: ```js 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" ```
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#2561
No description provided.