C Programming |
How to Add Binary Numbers In Computer Posted: 07 Aug 2014 11:25 AM PDT What is Binary Number System in Computer? In binary number system, there are only two number available to represent the numeric values says 0 and 1. There are 2 symbol (i.e. 0 and 1) used in binary number system, so it is also called base-2 numerical system. Example of Binary Number: 011, 1110, 101001, 111001011 Before we start that how to add binary numbers, first of all you should know that what will be values of decimal in binary, so below tables give you reference or cross check that binary number addition is correct or incorrect.
Table: Comparison of Decimal and Binary Numbers How to add binary number in computer? It is simple as we add the decimal number. keep in mind the following trick to addition of binary numbers as:
Table: Binary number addition rules Let's we understand the how to add binary number in computer through an example as: Let's we want to add two decimal number 8+4=12. When we convert these number decimal to binary, we get: 8 in Binary 1 0 0 0 and, 4 in Binary 1 0 0 Below figure shows the step by step with explanation that how to add these binary numbers:
Four your practice, add the following binary numbers: (for your cross check binary addition result, i also write down answer.) 1 0 1 0 0 0 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 + 0 1 1 0 1 + 1 0 0 1 1 0 + 1 1 0 + 1 0 1 1 0 1 1 ------------------ -------------------- ------------ --------------------- 1 0 0 0 0 1 1 0 1 1 0 0 1 1 0 0 1 1 0 0 0 0 1 0 ------------------ -------------------- ------------ -------------------- You might also like:
|
You are subscribed to email updates from C Programming To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
Post a Comment