For this you use a representation that is referred to as binary system...
Representation of numbers in a 4-bit binary system. |
You can represent with this 4-bit system all numbers from 0 to 16. An example...
1011 = 1 × 23 + 0 × 22 + 1 × 21 + 1 × 20
= 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1
= 11
This is known as a unsigned binary system. Later, you get to know different systems, as there are more systems to represent numbers.
The last digit of the binary number (20) is called LSB (Least Significant Bit), the first digit (23) als is called MSB (Most Significant Bit).
How do you add two binary numbers...?