Vue docs Animating with Watchers example causes precision errors for large numbers (floating point limit)
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 3.2k
- Forks
- 5k
- Avg merge
- 14d 17h
- Merged PRs (30d)
- 1
Description
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:
- Open the Animation Techniques - Animating with Watchers page.
- Enter a very large number (e.g., 9999999999999999).
- See the displayed number is wrong.
Expected:
The animation should either prevent too large numbers or mention this limitation.
Suggestion:
- Limit input range (below Number.MAX_SAFE_INTEGER)
- Add a note explaining floating-point limits.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Animation Techniques - Animating with Watchers section linked in the issue and inspect the example's handling of large numeric input. Decide whether the example should restrict values below Number.MAX_SAFE_INTEGER or document the floating-point limitation. Done means the example no longer presents misleading results for oversized input, or the limitation is clearly explained.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100