3.2 - Math in Binary
3.2 - Math in Binary
Review:
A wire can either have electricity flowing or not. On or Off, yes or no, true or false.
Binary is a number system with only 1 and 0
We can convert Binary <-> Decimal
Adding and Subtracting Binary
All number systems have the same techniques for addition and subtraction.
When we add 8 + 5 we place a 1 in the next column (tens) for 13. This is called a carry over.
For subtraction, we sometimes have to borrow from the next column. For example 14 − 6. In this case, we need to borrow from the single 10 so that we have enough for the subtraction.
If you miss class, you might want to watch this video.
Binary Math Facts:
Addition
0 + 0 = 0
1 + 0 = 0
1 + 1 = 10 (a carry over!)Subtraction
0 - 0 = 0
1 - 0 = 1
1 - 1 = 0
0 - 1 = need to borrow!