Convert the following 8-bit two's complement number into denary - Scottish Highers Computing Science - Question 1 - 2019
Question 1
Convert the following 8-bit two's complement number into denary.
1001 1010
Worked Solution & Example Answer:Convert the following 8-bit two's complement number into denary - Scottish Highers Computing Science - Question 1 - 2019
Step 1
Step 1: Identify the Sign Bit
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 (1) indicates that the number is negative in two's complement representation.
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 denary value, first, we convert the number into its positive equivalent by inverting the bits and adding 1:
Inverting the bits: 0110 0101
Adding 1: 0110 0101 + 0000 0001 = 0110 0110
This gives us the binary number for 102.
Step 3
Step 3: Apply the Sign
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 binary number was negative, the denary representation is -102.
Join the Scottish Highers students using SimpleStudy...