Skip to content

Conversation

@ParKing666
Copy link

In the text description of the State Properties paragraph:
[...]
As an example, consider a 2D grid where both axis have coordinates in the range (-2^128, 2^128 - 1).
[...]

In the example:
[...]
require(x > type(int128).min && x < type(int128).max);
require(y > type(int128).min && y < type(int128).max);
[...]

With int128 we use a bit for the sign, then 127 bits remain for the value.

Changed in the text description to be coherent:
...in the range (-2^127, 2^127 - 1).

…s ^128.

In the text description of the State Properties paragraph:
[...]
As an example, consider a 2D grid where both axis have coordinates in the range (-2^128, 2^128 - 1).
[...]

In the example:
[...]
require(x > type(int128).min && x < type(int128).max);
require(y > type(int128).min && y < type(int128).max);
[...]


With int128 we use a bit for the sign, then 127 bits remain for the value.

Changed in the text description to be coherent:
...in the range (-2^127, 2^127 - 1).
@github-actions
Copy link

Thank you for your contribution to the Solidity compiler! A team member will follow up shortly.

If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother.

If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant