
1.7 Converting Decimal Numbers into Binary
To convert a decimal number into binary, divide the number repeatedly by 2 and take the remainders. The first remainder is the least significant digit (LSD), and the last remainder is the most significant digit (MSD).
Example 1.3Convert decimal number 2810 into binary.
Solution 1.3Divide the number into 2 repeatedly and take the remainders:
28/2 → 14 Remainder 0 (LSD)
14/2 → 7 Remainder 0
7/2 → 3 Remainder 1
3/2 → 1 Remainder 1
