Subtract using 1’s complement: 9-12
Question
Subtract using 1’s complement: 9-12
Solution
Step 1: Convert the numbers into binary
- 9 in binary is 1001
- 12 in binary is 1100
Step 2: Find 1's complement of the second number (12)
- 1's complement of 1100 is 0011
Step 3: Add the first number and 1's complement of the second number
- 1001 (9 in binary)
- 0011 (1's complement of 12) = 1100
Step 4: If there is a carry, add it back to the result
- In this case, there is no carry, so we skip this step
Step 5: Take the 1's complement of the result to get the final answer
- 1's complement of 1100 is 0011, which is 3 in decimal
So, 9 - 12 = -3 in decimal.
Similar Questions
Subtract using 2’s complement: 7-11
Subtract (1011)2 from (1110)2 using the 1’S Complement method
2’S Complement Subtraction As in 1’S complement subtraction, the 2’S complement subtraction method allows subtracting numbers simply by using addition operation only.
Write the expression for: 𝑧 subtracted from 12.
In computers, subtraction is generally carried out by*1 point9’s complement10’s complement1’s complement2’s complement
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.