The objective of this experiment is to help students understand the concepts behind converting numbers between decimal and binary number systems. By learning these conversion methods, students will gain insight into how data is represented in digital systems and computers.
In binary, numbers are represented using only two digits: 0 and 1. To convert a binary number into a decimal number, follow these steps:
Example: Convert binary 1101 to decimal.
Adding these up: 8 + 4 + 0 + 1 = 13 (in decimal).
To convert a decimal number into binary, follow these steps:
Example: Convert decimal 13 to binary.
Step | Division | Remainder |
---|---|---|
1 | 13 ÷ 2 = 6 | 1 |
2 | 6 ÷ 2 = 3 | 0 |
3 | 3 ÷ 2 = 1 | 1 |
4 | 1 ÷ 2 = 0 | 1 |
So, the binary equivalent of decimal 13 is 1101.