Monday, January 16, 2012

BINARY ARITHMETIC OPERATIONS...

This topic about Arithmetic Operations is very confusing especially the long method in solving a subtraction but as time goes by I'm luckily understand it while solving more and more problems and exercises. It becomes now easy for me to solve.... ^_^


There are some rules for Binary Addition:


Binary Addition Rules 

0 + 1 = 1 

1 + 0 = 1 

0 + 0 = 0 

1 + 1 = 0 (carry one) 

1 + 1 + carry = 1 (carry one)



Rules for Subtraction:


Binary Subtraction Rules

  • take the second value (the number to be subtracted) and apply TWO'S COMPLEMENT (change 1 for 0 and 0 for 1)

  • add 1 to the result (of two’s complement)

  • add the complemented value to the first value;  during addition we disregard the last carry

Rules for Multiplication:
Binary Multiplication Rules


  • Binary multiplication can be achieved in a similar fashion to multiplying decimal values.  

  • Multiply each digit using the standard method;  

  • Add the results using the binary addition rules 

Rules for Division:
Binary Division Rules


  • Binary division can be achieved in a similar fashion to dividing decimal values.  

  • Divide the divisor from the dividend 

  • Use the simple subtraction rules whenever necessary, as follows: 
0 – 0 = 0   
1 – 1 = 0   
1 – 0 = 1   
0 – 1 = 1 (with borrow)