Binary addition follows the same rules as decimal addition, with the value 2 in binary being equivalent to 10 in decimal. Carry-over occurs when the result of addition equals 2. For example:
10
+11
----
100
Binary subtraction is similar to decimal subtraction, with borrowing occurring when necessary. For example:
-11
-01
----
10
Binary multiplication is simpler than decimal multiplication since the results are either the same as the first term or 0. Placeholders with 0s are added as needed. For example:
10111
x 11
------
10111
00000
10111
10111
10111
------
1000101
Binary division is similar to long division in the decimal system. The dividend is divided by the divisor using binary subtraction. For example:
10101
รท 11
------
1
-----
0
-----
1
-----