Skip to content

Commit 838d9f4

Browse files
committed
Small fixes
1 parent 6a21bc5 commit 838d9f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

learn_evm/arithmetic-checks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ However, the negative domain is shifted to lie "above" the positive domain.
158158
$$uint256 \text{ domain}$$
159159

160160
$$
161-
├\underset{0}{─}────────────────────────────\underset{\hskip -1.5em 2^{256} - 1}{─}┤
161+
├\underset{0}{─}────────────────────────────\underset{\hskip -2em 2^{256} - 1}{─}┤
162162
$$
163163

164164
```solidity
@@ -516,7 +516,7 @@ A better way to understand this is by visualizing the signed integer number doma
516516
$$uint256 \text{ domain}$$
517517

518518
$$
519-
├\underset{0}{─}────────────────────────────\underset{\hskip -1.5em 2^{256} - 1}{─}┤
519+
├\underset{0}{─}────────────────────────────\underset{\hskip -2em 2^{256} - 1}{─}┤
520520
$$
521521

522522
$$int256 \text{ domain}$$
@@ -554,7 +554,7 @@ $$
554554
Note that the scales of the number ranges above do not accurately depict the magnitude of numbers that are representable with the different types and only serves as a visualization.
555555
We are able to represent twice as many numbers with only one additional bit. Yet, the uint256 domain has twice the number of bits compared to uint128.
556556

557-
After subtracting `type(int128).min` we get the following, connected set of values.
557+
After subtracting `type(int128).min` (or adding $2^{127}$) and essentially shifting the domains to the right, we get the following, connected set of values.
558558

559559
$$
560560
├\underset{0}─────────────\underset{\hskip -2em 2^{128}-1}─┤

0 commit comments

Comments
 (0)