Skip to content

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

@bryanbraun

Description

@bryanbraun

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions