Binary Arithmetic
Binary arithmetic involves binary addition, binary multiplication, binary subtraction, and binary division.
It starts from the least significant side, i.e. from the right-hand side.
Binary Addition
Binary addition is divided into the following steps:
- 0+0=0
- 0+1=1
- 1+0=1
- 1+1=0
For example,
Let us take the following binary numbers,
10001001 and 10010101
Binary Subtraction
Binary subtraction is divided into the following four steps:
- 0-0=0
- 0-1=1
- 1-0=1
- 1-1=0
For example:
Binary Multiplication
Binary multiplication is divided into the following four steps:
- 0x0=0
- 0x1=0
- 1×0=0
- 1×1=1
For example:
Binary Division
To explain binary division we can look at the following example:
Reference