vuejs / vuejs/docs

Vue docs Animating with Watchers example causes precision errors for large numbers (floating point limit)

Open
#3,229 2 comments 0 reactions 0 assignees View on GitHub

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.

Image

Steps to Reproduce:

  1. Open the Animation Techniques - Animating with Watchers page.
  2. Enter a very large number (e.g., 9999999999999999).
  3. See the displayed number is wrong.

Expected:
The animation should either prevent too large numbers or mention this limitation.

Suggestion:

  1. Limit input range (below Number.MAX_SAFE_INTEGER)
  2. Add a note explaining floating-point limits.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.