## How to convert unsigned numbers from decimal system to binary code = simply convert from base ten to base two

### Follow the steps below to convert a base ten number to base two:

- 1. Divide repeatedly by 2 the decimal number that has to be converted to binary, keeping track of each remainder. STOP when the last quotient of the operations is ZERO.
- 2. Construct the base 2 representation of the positive number, by taking all the remainders starting from the bottom of the list constructed above. Thus, the last remainder of the divisions above, at the point 1, becomes the first symbol (the leftmost) of the base two number, while the first remainder becomes the last symbol (the rightmost).

### Example: convert positive number 55 from decimal system (base ten) to binary code (base two):

- 1. Divide repeatedly 55 by 2, keeping track of each remainder:
iteration division quotient remainder 1 55 : 2 = 27 **1**2 27 : 2 = 13 **1**3 13 : 2 = 6 **1**4 6 : 2 = 3 **0**5 3 : 2 = 1 **1**6 1 : 2 = 0 **1**Last quotient is ZERO => FULL STOP - 2. Construct the base 2 representation of the positive number, by taking all the remainders starting from the bottom of the list constructed above:

55_{(10)}= 11 0111_{(2)}