Questions about this topic? Sign up to ask in the talk tab.
Bitwise math/Introduction/Addition
From NetSec
- back to Bitwise math
Much like the decimal system, binary numbers can be added together. For this example the binary numbers 0110 and 0010 are going to be used and added.
Eights | Fours | Twos | Ones | Total | |
---|---|---|---|---|---|
Binary | 0 | 1 | 1 | 0 | 6 |
Decimal | 0 | 4 | 2 | 0 | 6 |
Eights | Fours | Twos | Ones | Total | |
---|---|---|---|---|---|
Binary | 0 | 0 | 1 | 0 | 2 |
Decimal | 0 | 0 | 2 | 0 | 2 |
Thus by using decimal addition, 4+2+2=8, the value of the addition of two binary numbers can be determined as 8.