-
Notifications
You must be signed in to change notification settings - Fork 713
Decimals and combinations of zeroes seem to break comma formatting #56
Comments
@TrevorBurnham Any chance this is a side-effect of your change? |
I don't see how it could be, if |
@TrevorBurnham I honestly don't even understand what the source of the problem is... I cannot reproduce the same errors on the project I am working on, and there are no native modifications to the odometer code... I am not using the latest version, however... I am using @sidonath 's version with the decimal places and formatting... I've tried the new versions and they end up breaking decimals... Here is a jsfiddle of the version and assets I am using: http://jsfiddle.net/8x8rQ/ This is what happens when using the latest version: http://jsfiddle.net/8x8rQ/1/ Again, this seems to be somewhat related to the decimal patch, as that is the one where I experienced the problem. |
And are you seeing this bug in either of those fiddles? In what browser? |
I am seeing neither. I cannot replicate the conditions of the issue I started on either of the fiddles, nor can I replicate the issue on my server anymore as either the issue has fixed itself, or the conditions that brought about the issue cannot be replicated since the numbers and state of the page where the issue originated are transient. Seeing as that is the case, I guess we can close this issue until or if it arises again. Thank you @TrevorBurnham and @zackbloom for the prompt assistance. |
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.
When it doesn't work:
Example $50,520.00:

Example $9,400.00:

Example $50,001.00

When it works:
Example $9,400.01:

Example $50,000.01:

Thanks!
The text was updated successfully, but these errors were encountered: