-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Rounding error with currency #74
Comments
It's not really a mistake, although I agree it looks really strange. The fact is that under the hood filter 2.35.toFixed(1); // Returns '2.4'
2.55.toFixed(1); // Returns '2.5' Here you can read more about it: |
Hmm thanks for the clear up. I did a quick google search regarding this issue and found a simple solution of using some logic of below:
Is it possible to implement something to the currency filter? I Just found it odd that it rounds up conditionally. So far it's been causing a headache b/c our sales orders are sometimes off by .01 visually between our ERP that rounds up. |
Well, I will check this solution and if everything works fine I will update filter as soon as possible. |
@freearhey Thanks! |
Done. |
@freearhey Everything looks good! Thanks again! |
Not sure if this is a bug or I'm missing something, however I have two records in my system with same 3rd decimal but one is not rounding up. They are both using currency("$") (which should round to 2 decimal by default).
The text was updated successfully, but these errors were encountered: