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

2993 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

What is the difference between a high level language and a low level language?


A binary, 8-bit floating point number 0111 0010 is said to have a 4-bit mantissa and a 4-bit exponent. What is meant by the terms 'mantissa' and 'exponent'? What is the value of this 8-bit binary floating point number?


What is meant by the term spooling? Give an example of when it can be used.


A computer stores floating point numbers of size 1 byte, with 3 bits for the mantissa and 5 bits for the exponent. State what the effects would be on the stored numbers if instead 5 bits were used for the mantissa and 3 bits were used for the exponent.


We're here to help

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

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy