作者gn00618777 (123)
看板Grad-ProbAsk
標題[理工] [計概]-浮點數格式
時間Thu Aug 13 13:58:11 2009
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
1F:推 HolyXie:最左邊的1才是sign bit 08/13 14:04
2F:→ HolyXie:右邊9bit都是mantissa 無關正負 08/13 14:05
3F:→ HolyXie:12.5 = 1100.1 08/13 14:07
4F:→ icrts:樓上正確 08/13 16:17