Binary Negative Number 2進数の負の数
Negative number is base on add( and subtract).
負の数は足し算(と引き算)によって成り立ちます。
3 = 2 + 1
2 = 2 + 0
1 = 2 - 1
↓
1
0
-1
3 = 3
3 + 2 = 3 + 2
3 - 2 = 3 - 2
3 x 2 = 3 x 2
3 ÷ 3 = 3 ÷ 3
3 ÷ 2 Remainder = 3 ÷ 2 Remainder
‖
3 - 2 = 3 - 2
Remainder = 余り
8 421
-----
1 111 15 ÷ 8 Remainder 7
1 110 14 ÷ 8 Remainder 6
1 101 13 ÷ 8 Remainder 5
1 100 12 ÷ 8 Remainder 4
1 011 11 ÷ 8 Remainder 3
1 010 10 ÷ 8 Remainder 2
1 001 9 ÷ 8 Remainder 1
1 000 8 ÷ 8 Remainder 0
111 7 = 8 - 1
110 6 = 8 - 2
101 5 = 8 - 3
100 4 = 8 - 4
011 3
010 2
001 1
000 0
↓
8421
111 -1
110 -2
101 -3
100 -4
011 3
010 2
001 1
000 0
負の数は足し算(と引き算)によって成り立ちます。
3 = 2 + 1
2 = 2 + 0
1 = 2 - 1
↓
1
0
-1
3 = 3
3 + 2 = 3 + 2
3 - 2 = 3 - 2
3 x 2 = 3 x 2
3 ÷ 3 = 3 ÷ 3
3 ÷ 2 Remainder = 3 ÷ 2 Remainder
‖
3 - 2 = 3 - 2
Remainder = 余り
8 421
-----
1 111 15 ÷ 8 Remainder 7
1 110 14 ÷ 8 Remainder 6
1 101 13 ÷ 8 Remainder 5
1 100 12 ÷ 8 Remainder 4
1 011 11 ÷ 8 Remainder 3
1 010 10 ÷ 8 Remainder 2
1 001 9 ÷ 8 Remainder 1
1 000 8 ÷ 8 Remainder 0
111 7 = 8 - 1
110 6 = 8 - 2
101 5 = 8 - 3
100 4 = 8 - 4
011 3
010 2
001 1
000 0
↓
8421
111 -1
110 -2
101 -3
100 -4
011 3
010 2
001 1
000 0