Home / decimal to two complement / Socorro Independent School District / Homepage

Socorro Independent School District / Homepage - decimal to two complement

?Activity 2.3.4 Two’s Complement ArithmeticIntroductionDo negative numbers exist? Did you know that great mathematicians throughout history argued about the very existence of negative numbers? William Frend, a 16th century European mathematician, refused to accept the existence of negative numbers. In his book The Principles of Algebra (1796), he wrote:"to attempt to take [a number] away from a number less than itself is ridiculous."Even Augustus DeMorgan, author of the famed DeMorgan Theorems, thought that numbers less than zero were unimaginable.We all know now that negative numbers do exist. We learned about them in the third grade, and we use them every day. A golfer who scores a 67 on a par 72 course would describe her score as 5 under par, or -5. Likewise, in the northern climate of the United States, the winter temperatures can drop to 10 below zero, or -10 Fahrenheit.If negative decimal numbers exist and you can convert a decimal number into its binary equivalent, then there must be a way to represent negative binary numbers. In this activity you will learn how to express numbers in their 8-bit - 2’s complement binary equivalent. You will use these equivalencies to perform simple addition and subtraction.Equipment Calculator (preferably one with a number base conversion feature)ProcedureExpress the following decimal numbers as their 8-bit - 2’s complement binary equivalent.114 (10) = _________ (2)-49 (10) = _________ (2)87 (10) = _________ (2)-108 (10) = _________ (2)-97 (10) = _________ (2)Express the following 8-bit - 2’s complement binary number as their decimal equivalent.11011001 (2) = _________ (10)01110100 (2) = _________ (10)10110001 (2) = _________ (10)10111101 (2) = _________ (10)00011011 (2) = _________ (10)Perform each of the following additions in 2’s complement form. Check your answers by converting the 2’s complement binary numbers into their decimal equivalents and adding.After converting each decimal number to its 8-bit - 2’s complement binary equivalent, perform the following arithmetic operations. Check your answers by converting the 2’s complement binary numbers into their decimal equivalents. (Remember, subtraction is the same as addition of a negative number.)ConclusionWhat is the largest positive and smallest negative decimal number that can be expressed as an 8-bit - 2’s complement binary number?Without performing any binary-to-decimal conversions, which of the following binary numbers must be -49?001100011100111101100110How were you able to determine this?

What is 2's complement and how it is important? 2's complement is used for representing signed numbers and performing arithmetic operations such as subtraction, addition , etc. The positive number is simply represented as a magnitude form. So there is nothing to do for representing positive numbers.