Re:Arithmetic in Computer Hardware
by adgjlsfhk1 on Friday November 17, 2023 @07:49PM
(#38313243)
Z_(2^32) is a really good explanation for unsigned integers, but to me at least it's not a great explanation of why signed integers are the way they are.
[ Parent
| on HN ]
Re:Arithmetic in Computer Hardware
by nh23423fefe on Monday November 20, 2023 @01:42PM
(#38352396)
But the justification is the same, congruence modulo 2^n
Z_4
0 1 2 3 4 5 6 7 8 9
0 1 2 3 0 1 2 3 0 1
0 1 -2 -1 0 1 -2 -1 0 1