Find the decimal number whose two’s complement representation is given.
FFF2Hi)
F9Hii)
Solution
FFF2Hi)
Taking two’s complement gives 000E
which is 1110. i.e., 14 – which means that −14 is the number represented by FFF2H.
F9Hii)
Taking two’s complement gives
0111 i.e., 7, which means that −7 is the number represented by F9H.
QuestionLooking at the result of various arithmetic operations on binary numbers, how
do we know whether it is a positive or a negative number? What is your observation regarding
signed numbers?
AnswerWe should know how many bits are used for the representation of a signed number
in the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.