Binary: Difference between revisions

From Computer Science Wiki
No edit summary
Line 17: Line 17:
|<br /> || || || || || || ||
|<br /> || || || || || || ||
|}
|}
== How to add two binary numbers ==
Adding binary is straight forward. Line up the numbers as you would if you were adding base-10 numbers.
Remember this:
<code>
0 + 0 = 0
0 +  1 = 1
1 + 0  = 1
1 + 1 = 10, so write a 0 and carry the 1.
</code>


== Do you understand binary? ==  
== Do you understand binary? ==  

Revision as of 14:52, 18 April 2016

This is a basic concept in computer science

Binary[edit]

This is one of the better videos I've seen on binary.


Binary Translation table[edit]

I find it helpful to draw this table when I must convert binary to base 10.

128 64 32 16 8 4 2 1


How to add two binary numbers[edit]

Adding binary is straight forward. Line up the numbers as you would if you were adding base-10 numbers.

Remember this:

0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 10, so write a 0 and carry the 1.


Do you understand binary?[edit]

Click here to test yourself

Why is this so important?[edit]

If we can represent numbers as 1 and 0, why not represent numbers as on and off? If we can represent letters as numbers (A = 65, B = 66) couldn't we also say A = 01000001 and B = 01000010?

Binary representation is the essence of how computers work.

Resources[edit]

Click here for a slide deck that covers this topic nicely