Analogue Digital Data 15-19 of 19

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

Converting Decimal to Binary

(Method 1)
How do we convert the decimal number 15 into binary?
Step 1: Create a table and write out the above headings
Does anyone know the pattern between the column headings?
128

64

32

16

15

www.bcotcomputerscience.co.uk

How do we convert the decimal number 15 into binary?


Step 2: Starting from the left write a 0 under the each column heading bigger than
the whole number:

15

128

64

32

16

Step 3: Write a 1 under the biggest column heading which is smaller than the whole
number
128
64
32
16
8
4
2
1

15

Step 4: Subtract the column heading away from the whole number (15-8 = 7). The
new number you are now working with is 7. Repeat Step 3 and 4, until you reach 0
www.bcotcomputerscience.co.uk

After completing your calculations, you should have obtained the


following Binary number for the decimal value of 15.

15

128

64

32

16

15= 00001111

www.bcotcomputerscience.co.uk

Converting Decimal to Binary


(Method
2)
Converting denary 83 to binary:

83 2 = 41 remainder 1
41 2 = 20 remainder 1
20 2 = 10 remainder 0
10 2 = 5 remainder 0
5 2 = 2 remainder 1
2 2 = 1 remainder 0
1 2 = 0 remainder 1
Now put the remainders in reverse order to get the final binary number: 1010011

83

128

64

32

16

Now check that this is right by converting it back into decimal


www.bcotcomputerscience.co.uk

www.bcotcomputerscience.co.uk

You might also like