Re: [問題] 計概一問
上一篇我把轉換搞錯了,搞成 excess (逃~),不過 N=2 位元可以表示的最小整數
是 -(2^(2-1)) = -2 在兩種表示法裡都沒錯。重寫。
解釋為 解釋為 解釋為
binary decimal 2's comp excess
01 3 1 -1
00 2 0 -2
11 1 -1 1
10 0 -2 0
雖然MSB有表現出符號的特性,可是兩種表示法都沒有符號位元。
Hans.
--
怎麼寫錯沒人鞭..
--
I do not believe in stress. If you come to me with a problem and I can fix
it then it is not a problem, but if I can't fix it then it is still your
problem.
de Harry Lythall, SM0VPO.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.229.82.201
討論串 (同標題文章)