Digital Electronics - Digital Arithmetic Operations and Circuits - Discussion
Discussion Forum : Digital Arithmetic Operations and Circuits - General Questions (Q.No. 42)
42.
Convert each of the signed decimal numbers to an 8-bit signed binary number (two's-complement).
+7 –3 –12
+7 –3 –12
Discussion:
1 comments Page 1 of 1.
Shruthi said:
1 decade ago
+7 => 00000111.
-3=>for -ve sign the 1st four digit should be 1111 and the 3 becomes 0011 in binary. Take 2's complement of 3. We will get 1101.
i.e 3=>0011.
1's complement => 1100.
2's complement => 1101.
-3=>for -ve sign the 1st four digit should be 1111 and the 3 becomes 0011 in binary. Take 2's complement of 3. We will get 1101.
i.e 3=>0011.
1's complement => 1100.
2's complement => 1101.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers