看板 Grad-ProbAsk 關於我們 聯絡資訊
A certain computer respents floating point number by means of a signed magnitude fractional mantissa(with the bit right after the decimal is hidden since it is always one) and an excess 32 base 2 exponenet. The 16 bit format is shown below 1 100100 100100000 解答化為原來的樣子:-0.11001*2^4 小數點右邊第一個1我知道是隱藏bit所以要加上去 問題是,小數部分他說用signed magnutude表示的 也就是說後面的 9 bits 最前面是1 所以是負的 而全部 16 bit的sign bit為 1 應該是負負得正阿= =? 解答怎麼為-12.5 ??? 我最搞不懂的就是mantissa部分 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.168.60.166
HolyXie:最左邊的1才是sign bit 08/13 14:04
HolyXie:右邊9bit都是mantissa 無關正負 08/13 14:05
HolyXie:12.5 = 1100.1 08/13 14:07
icrts:樓上正確 08/13 16:17