subtract the binary number given below
01100110-11001001
plzzzz give me the answer in step by step
Swetank11:
plz give me in steps
Answers
Answered by
3
Given 1st Binary number:
01100110
Given 2nd binary number:
11001001.
Now,
We have to convert the 1st binary to decimal:
01100110 = > 0 * 2^7 + 1 * 2^6 + 1 * 2^5 + 0 * 2^4 + 0 * 2^3 + 1 * 2^2 + 1 * 2^1 + 0 * 2^0
= > 0 + 64 + 32 + 0 + 4 + 2
= > 102.
Now,
We have to convert 2nd binary to decimal.
11001001 = > 1 * 2^7 + 1 * 2^6 + 0 * 2^5 + 0 * 2^4 + 1 * 2^3 + 0 * 2^2 + 0 * 2^2 + 1 * 2^0
= > 128 + 64 + 8
= > 200.
Their Difference = 102 - 100
= 99.
Now,
We have to convert Binary to decimal.
2 | 99
2 | 49 - 1
2 | 24 - 1
2 | 12 - 0
2 | 6 - 0
2 | 3 - 0
2 | 1 - 1
= (1100011).
Therefore the result is 1100011.
Hope this helps!
01100110
Given 2nd binary number:
11001001.
Now,
We have to convert the 1st binary to decimal:
01100110 = > 0 * 2^7 + 1 * 2^6 + 1 * 2^5 + 0 * 2^4 + 0 * 2^3 + 1 * 2^2 + 1 * 2^1 + 0 * 2^0
= > 0 + 64 + 32 + 0 + 4 + 2
= > 102.
Now,
We have to convert 2nd binary to decimal.
11001001 = > 1 * 2^7 + 1 * 2^6 + 0 * 2^5 + 0 * 2^4 + 1 * 2^3 + 0 * 2^2 + 0 * 2^2 + 1 * 2^0
= > 128 + 64 + 8
= > 200.
Their Difference = 102 - 100
= 99.
Now,
We have to convert Binary to decimal.
2 | 99
2 | 49 - 1
2 | 24 - 1
2 | 12 - 0
2 | 6 - 0
2 | 3 - 0
2 | 1 - 1
= (1100011).
Therefore the result is 1100011.
Hope this helps!
Similar questions