You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
In the Vue official documentation (Animation Techniques - Animating with Watchers), when typing a very large number like 9999999999999999, the number animation becomes inaccurate because of JavaScript floating-point limits.
I'd vote for the option two, because adding extra logic into code will obsfucate the example for an edge case.
Something like: "Note that inputs larger than 9007199254740991 (better known as Number.MAX_SAFE_INTEGER) may produce inconsistent results due to floating-point artithmetics' limitations of JavaScript."
I'd vote for the option two, because adding extra logic into code will obsfucate the example for an edge case.
Something like: "Note that inputs larger than 9007199254740991 (better known as Number.MAX_SAFE_INTEGER) may produce inconsistent results due to floating-point artithmetics' limitations of JavaScript."
Thank you for your input!
I agree that keeping the example simple and adding a short note would be more appropriate.
I have revise the example accordingly and submit a PR with a clarification comment on Number.MAX_SAFE_INTEGER.
Appreciate your feedback!
Problem:
In the Vue official documentation (Animation Techniques - Animating with Watchers), when typing a very large number like 9999999999999999, the number animation becomes inaccurate because of JavaScript floating-point limits.
Steps to Reproduce:
Expected:
The animation should either prevent too large numbers or mention this limitation.
Suggestion:
The text was updated successfully, but these errors were encountered: