tc39 / tc39/proposal-decimal

Example where 1/3 + 1/3 != 2/3

Open
#63 11 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
638
Forks
20
PR merge metrics
No merged PRs in 30d

Description

There some rumours that Decimal128 is silver bullet. But we can construct expression similar to

0.1 + 0.2 != 0.3

But in another base. This will be fair to add it in readme.

1m/3m + 1m/3m != 2m/3m

Contributor guide

Open the contributing guide

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 with the repository README and review the existing Decimal128 examples and wording. Add the 1m/3m + 1m/3m != 2m/3m example with enough context to show the precision behavior; done means the example is clearly included in the README.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.