請教達人2題關於電腦的問題

2012-09-28 1:03 am
請問
What is the 8-bit two's complement binary notation for the decimal number 117?
What is the 8-bit two's complement binary notation for the decimal number -117?
這兩題要怎麼做呀?

回答 (1)

2012-09-28 9:01 am
✔ 最佳答案
正數的tw0's complement,其實即是binary,117化成二進就得。
答案係01110101。
求-117,即把先前答案0和1倒轉,得出10001010,呢個係1's complement,加1,答案係10001011。


收錄日期: 2021-04-26 11:30:52
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20120927000051KK00294

檢視 Wayback Machine 備份