Convert the 8-bit two's complement number 1111 0000 into denary. - Scottish Highers Computing Science - Question 1 - 2023
Question 1
Convert the 8-bit two's complement number 1111 0000 into denary.
Worked Solution & Example Answer:Convert the 8-bit two's complement number 1111 0000 into denary. - Scottish Highers Computing Science - Question 1 - 2023
Step 1
Step 1: Determine if the number is negative or positive
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The first bit of the 8-bit two's complement number 1111 0000 is 1, indicating that the number is negative.
Step 2
Step 2: Find the two's complement
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To find the two's complement, first, invert all bits of the number:
0000 1111
Then, add 1 to this result:
0000 1111 + 1 = 0001 0000
This gives us 16 in decimal.
Step 3
Step 3: Determine the denary value
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Since the original number was negative, the denary value is then -16.
Join the Scottish Highers students using SimpleStudy...