cplusplus / cplusplus/draft

[basic.fundamental] p5 Improve the definition of base-2 representation of the signed integer type

Open
#5,545 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

[basic.fundamental] p5

Each value x of an unsigned integer type with width N has a unique representation x = x020 + x121 + ... + xN-12N-1, where each coefficient xi is either 0 or 1; this is called the base-2 representation of x. The base-2 representation of a value of signed integer type is the base-2 representation of the congruent value of the corresponding unsigned integer type.

Change the emphasized part to

For value x, the value of the corresponding signed integer type that is congruent to x modulo 2N has the same base-2 representation as that of x.

This is easier to read and looks stricter.

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

Locate the [basic.fundamental] paragraph 5 wording in the draft source and compare it with the proposed replacement in the issue. Update that passage to use the requested congruence wording, then verify that the generated standard text renders correctly and matches the issue's proposed text.

Written by the indexing model from the issue text.

Assessment

Tech stack
tex
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.