-
Notifications
You must be signed in to change notification settings - Fork 30
2 digits after decimal, less than 0.10, is improperly formatted #41
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
Comments
Looking forward There are also |
#30 is different as that relates to the date formatter :) |
Correct, I saw digit and thought it was also related to numbers :d |
#42 does the trick for us. We made the change on a much older version (v1.0.0 😬), but it rebased cleanly against current master. I also added the test that I linked to above (failing before these changes, but now passing). |
This should be fixed with #42 getting merged, closing. |
I am using purescript-formatters to display USD formatted numbers. I am running into a subtle bug where numbers with decimal between 0.00 and 0.10 (i.e. $1.01 or $1.09) does not get formatted properly. An example of this bug is below -
Here is a link to a branch with a failing test demonstrating this.
I may have a PR that can fix this upcoming.
The text was updated successfully, but these errors were encountered: