00011010 26 00001011 11 00011011 27 00001100 12 00011100 28 00001101 13 00011101 29 00001110 14 00011110 30 00001111 15 00011111 31

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.3

Convert decimal number 2810 into binary.

Solution 1.3

Divide 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



21 из 499