How Do You Add Binary Numbers And How Do You Subtract Them?
Just need to know how to do it
1 Answer - Sort by: Date | Rating
It is so simple that it is confusing. Let's use 1011 and 0010 as two numbers we are going to add. We will add right to left just like we would with base 10 numbers:
Subtraction can be done in the same manner (right to left with borrowing) but in binary there is a more efficient method known as "two's compliment". Two's compliment is simply reversing all of the bits e.g. 1001 becomes 0110 and then adding 1 to the result: 0111. Let's use the same numbers as in the previous example:
If you were following closely you might wonder what happened to the high order bit in the result. The answer is that it is discarded.
Hope this helps.
Step 1
1011
0010
-----
***1 --- 1 + 0 is 1 just like in base 10
Step 2
1011
0010
-----
**01 --- 1 + 1 is 10 in base 2, so we put down a zero and carry the 1
Step 3
1011
0010
-----
*101 --- remember the 1 we carried from the previous step? We use it here
Step 4
1011
0010
-----
1101 --- 1 + 0 = 1, just like before
Subtraction can be done in the same manner (right to left with borrowing) but in binary there is a more efficient method known as "two's compliment". Two's compliment is simply reversing all of the bits e.g. 1001 becomes 0110 and then adding 1 to the result: 0111. Let's use the same numbers as in the previous example:
Step 1
1011 = 11 decimal
0010 = 2 decimal
We preform a two's compliment on the second number and then add it to the first the same way we did above:
1011
1110
----
1001 = 9
If you were following closely you might wonder what happened to the high order bit in the result. The answer is that it is discarded.
Hope this helps.
1
0
- How Can Send Sms Without Id?
- How To Down Load Phone Drivers?
- What Is The Negative Sentences?
- How Can I Download A Driver For My Magnavox Hd Tv, Model # 15mf605t/17?
- According To BSR, Inc., A Respected Driver Training Facility, What Are The Four Primary Causes Of Crashes?
- Most Rear-end Accidents Are Caused By Following Too Closely. To Avoid This Drivers Should Use The?
- How To Turn On Nic Port?
- What Wealthy Tycoon Was The Host Of "The Apprentice" In The U.S?
- Where Does NIC Located?
- Were Dose Nic Bishop Live?
- Where Can I Get Hp Computer Desktop Gadget A Calender?
- Why Does 'C' Language Known As 'C' Language?
- What Is The Sign Of A Failing Motherboard?
- How I Can Format Cpu Without Disk?
- Do I Have To Write Www.TTL3.com So I Could Play With It?
- What Is Pcs?
- What Are Dialers?
- How Do You Play Ttl3 At Home?
- Is Nic Awesome?
- What Free Driver Works With?
- Where Can I Find A Blue Argon Laptop Driver?
- What Is The Best Computer To Buy For Around £600?
- What's The Quietest Cooling Fan Around For A Socket 775 Motherboard?
- I Want A Webcam Driver Of Intex IT 305 WC Model.I Want It Free So Plz Don't Suggest The Paid Sites,?
- How Many Computer System We Can Load On 20 Ft Container. Pc Desktop Computer & CRT Monitor, Keyboard And Mouse?
- Why Do We Have To Line Up The Numbers When We Add Or Subtract?
- How Do You Add 101+11 If The Numbers Are Binary Numbers?
- How To Add, Subtract, Multiply And Divide Fractions Numbers?
- What Two Numbers Can You Add Divide Subtract Multiply And Get The Same Answer?
- How Do You Add, Subtract, Multiply, Divide Numbers In Scientific Notation?
- What Is 3x-(2x+7)=9 How Do You Know When To Subtract Or Add Or Other?
- How Do I Add And Subtract Integers?
- How Do You Add And Subtract Integers?
- How Do You Add And Subtract Polynomials?
- Can You Add And Subtract This Polynomial? (7r-3s-1)-(4r-5s+6)?

New Comment - Comments are editable for 5 min.