Write the 2’s complement of (101010)base 2
Answers
Explanation:
To get 2's complement of binary number is 1's complement of given number plus 1 to the least significant bit (LSB). For example 2's complement of binary number 10010 is (01101) + 1 = 01110.
The 2’s complement of (101010)2 is (10110)2.
Explanation:
Two's complement is a mathematical operation on binary numbers and is an example for radix complement.
It is used in the computer science field as a method of signed numbers representation.
When the Most Significant Bit is given to be one, the number is signed as negative.
We're given a binary number (101010)2 which needs to be converted to its 2's complemented form.
Step 1: Make it in 1's complemented form.
1's complement form conversation includes replacing all 0s with 1s and all 1s with 0s.
So, 1's complement of (101010)2 will be (010101)2.
Step 2: Adding 1 to the 1's complemented form.
This step includes the binary addition of the computed 1's complement with 1.
So (10101)2 + (1)2 = (10110)2
Hence, The 2’s complement of (101010)2 is (10110)2.