fix(numberFilter): correctly round fractions despite floating-point arithmetics issues in JS#7962
Conversation
|
Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
|
LGTM |
|
Looks I spoke too soon as it looks like there are some issues with IE10 and NaN |
|
All of them, not just IE |
…rithmetics issues in JS Closes angular#7870 Closes angular#7878
|
I fixed that and pushed a new version. waiting for travis.. |
|
@caitp you are right |
|
was about to submit a pull request. fix was: |
|
toFixed has the same issues with floating point arithmetics as regular (1.255).toFixed(2) On Thu, Jun 26, 2014 at 6:44 AM, Anthony Chua notifications@github.com
|
|
yup. i meant using the old code: fixed the problem of getting notation format on 0 with a fractionSize > 5 |
Closes #7870
Closes #7878