中四電腦科的計數題

2012-10-07 9:15 pm
計算01001011的2次減00100111的2次。

回答 (2)

2012-10-07 9:55 pm
✔ 最佳答案
〖01001011〗_2 - 〖00100111〗_2 in computer you can’t do…
so that is why 2's complement come in...
Give you example…..例如
〖01001011〗_2 + 〖00100111〗_2 --- make 〖00100111〗_2 2nd complement
(75)+(-39)= 36
(1st complement- 反) 00100111 = 11011000
(2nd complement- +1) 11011000+1 = 11011001
01001011 + 11011001 = 100100100 -> now we have 9 bits, so we ignore the MSB(most significant bit)因為超bit,要ignore
= 00100100 to decimal = 36 done!
2012-10-07 11:22 pm
太複習同睇唔明,OK


收錄日期: 2021-04-23 18:32:31
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20121007000051KK00278

檢視 Wayback Machine 備份