Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask with # as decimal is not working as expected #18

Closed
Veoth opened this issue Nov 6, 2018 · 1 comment
Closed

Mask with # as decimal is not working as expected #18

Veoth opened this issue Nov 6, 2018 · 1 comment
Labels

Comments

@Veoth
Copy link

Veoth commented Nov 6, 2018

Hi @Mottie ,
First thank you for the library which is really useful.

Among all the examples you supplied in the README, there is this one:

format( "#,##0.####", 1234567.890 ); // output: "1,234,567.89"

The actual output is "1,234,567.8900"

I believe this is a bug since the # should fill the decimal only if necessary.

@Veoth Veoth changed the title Add an option to avoid displaying 0 as decimal Mask with # as decimal is not working as expected Nov 6, 2018
@Mottie
Copy link
Owner

Mottie commented Nov 6, 2018

Hi @Veoth!

Thanks for reporting this problem! I'll get it fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants