How do you convert from binary to decimal?

Our conventional numbering system is based around the idea that we can represent any number with 10 different digits arranged in a specific order. Because of this, this is called a base-10 or decimal system. In binary, we can represent any number we want with only two different numbers a 1 or 0, so it is called a base-2 system. 
Let's look at an example, first in decimal.
The number 1234 can be broken down into:
1 x 4 +
10 x 3 +
100 x 2 +
1000 x 1
or alternatively
10x 4 +
10x 3 + 
102 x 2 +
103 x 1
From this we can see the evidence of a base 10 system, each time we look at the next digit, we increase the power of the multiplier.
 
So bearing this in mind, we can look at a binary number, made of just 1's and 0's, for example 0110.
Just as above, every time we look at teh next digit, we increase the power of the multiplier BUT binary is base-2...so:
2x 0 +
2x 1 +
22 x 1+
23 x 0
And adding all these numbers up lets you convert a binary number to decimal. So 0110 in decimal is 0+2+4+0 = 6!

Answered by James T. Computing tutor

3287 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

Explain a bubble sort. You may use pseudocode and/or diagrams to help demonstrate your answer.


Why indentation is important in Python and what is the scope of a global variable?


Convert the base-10 number 74 into an 8-bit binary number


What the main differences between an interpreter and a compiler?


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences