Addition: Binary Math
Addition: Binary Math
The rules for binary math are the exact same as they are for human math. We are going to remember our math rules from elementary school and see if they apply to binary math.
Addition
DEC Style
In Elementary school, our teachers taught us to add column by column from the right. If any column resulted in a double digit, drop the right number and carry the left one.
BIN Style
When we apply elementary math rules to binary addition, the numbers still add up the same. It is okay to start with 4 bit numbers and end 8 bit. As long as the math makes sense, it is okay. Just remember: 0+0=0 1+0=1 1+1=10 (0010) 1+1+1= 11 (1011) The main rule that both decimal and binary math used is the carry-over"
Subtraction
Human Style In elementary school, we learned the borrow rule. If you cant subtract the number, borrow a value from the column to the left. Computer Style Even Computers use the borrow rule. The difference is that: 10 in BIN= 2 in DEC 1 in BIN= 1 in DEC
Binary Multiplication
Human Style Multiply the bottom number to the top one. Column by column from the right. Each column adds a zero.
Computer Style
The same rules work. But even better, we only have to memorize our 1s time tables.