Skip to content
This repository was archived by the owner on Apr 2, 2019. It is now read-only.
This repository was archived by the owner on Apr 2, 2019. It is now read-only.

Decimals and combinations of zeroes seem to break comma formatting #56

@youanden

Description

@youanden

When working with numbers over 1,000. I honestly can't spot a very discrete pattern. Example 3 shows that you can have three consecutive non-trailing zeroes and still break formatting.

Example 5 shows you can have three consecutive non-trailing zeroes and follow formatting.

If someone hasn't already run into this issue I'm going to try to patch it.

window.odometerOptions = {
    format: '(,ddd).dd'
};

When it doesn't work:

Example $50,520.00:
example 1

Example $9,400.00:
example 2

Example $50,001.00
example 3

When it works:

Example $9,400.01:
example 4

Example $50,000.01:
example 5

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions