Calculate (100)2 - (11)2. Write your answer in base 2.
Explanation:
When we subtract numbers in non-decimal system, subtract them as we do in decimal system but write them according to the given base system.
Step 1: Subtracting unit’s digits.
When we subtract bigger number from a smaller number, we borrow from the left of the smaller digit.
Since we are dealing in base 2, when we borrow, we subtract 1 from the left digit and add 2 in the smaller digit.
Now subtract as we do in decimal system i.e., 2 + 0 – 1 = 1
Step 2: Subtracting ten’s digits.
Now subtract as we do in decimal system i.e., 2 – 1 + 0 - 1 = 0.
Step 3: Subtracting hundred’s digits.
Subtract as we do in decimal system i.e., -1 + 1 – 0 = 0.
Hence, 1.
» Your doubt will be displayed only after approval.
Help us build a Free and Comprehensive Preparation portal for various competitive exams by providing us your valuable feedback about Apti4All and how it can be improved.