How do I convert decimal numbers to binary numbers and vice versa?
There are a number of methods that can be used to convert decimal numbers to binary and vice versa. One method that is easy to do with pen and paper is to perform Euclidean division (division with remainder) on your number by 2 repeatedly while collecting remainder terms. To use this method first perform Euclidean division on your number by 2, then write down the integer answer (called the quotient) and the left over term that will either be 0 or 1 (called the remainder). Then repeat the Euclidean division by 2 on the quotient from the previous step until the quotient is zero, writing down the remainder in each step. The binary number will then be your written down remainders but in reverse order.

An example for converting 6 into a binary number is.

1. 6/2 -> quotient = 3, remainder = 0
2. 3/2 ->  quotient = 1, remainder = 1
3. 1/2 ->  quotient = 0, remainder = 1

The binary number is then read in reverse order, therefore the binary form of the decimal number 6 is 110.

There are also a number of methods to convert a binary number to a decimal number. One easy method uses the position of each digit in the binary number. To convert a binary number to a decimal number using the digit positions first write down each position of the binary number from right to left order and starting from 0. For every position with a 1 in the binary number, calculate 2 to the power of its position. Adding together all the calculated powers of 2 will then give you the correct decimal representation of the binary number.

An example of converting the binary number 110 back into the decimal for is.

1. The positions of each digit in the binary number is 2 for the first digit 1, 1 for the second digit 1 and 0 for the last digit 0.
2. The powers of 2 for the first and second position are 2^2=4 and 2^1=2 respectively.
3. Adding the previously calculated powers of 2 together gives  4 + 2 = 6.

Giving the expected answer that the decimal for of 110 is 6.
How can I convert a number from decimal into hexadecimal and vice versa?
To convert decimal into hexadecimal:
1. Divide the decimal interger number by 16.  Keep aside the remainder.
2. Divide the quotient by 16, continue to keep aside the remainder,
3. Repeat step 3 until you get the quotient value equal to zero.
4. Take the values of the remainder’s left in the reverse order to get the hexadecimal numbers.

To convert hexadecimal into decimal:
1. Get the decimal equivalent of hex from table below.

| **Decimal Number**         | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| -------------------------- | - | - | - | - | - | - | - | - | - | - | -- | -- | -- | -- | -- | -- |
| **Equivalent Hexadecimal** | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A  | B  | C  | D  | E  | F  |

2. Multiply every digit decimal equivalent with 16 to the power of digit location.
3. Sum all products to get the decimal number.