[理工] [計組]-浮點數
95政大資科
Consider a shorten version of the IEEE standard floating with only
12 bits: one sign bit,5 bits for exponent,and 6bits for the significand
(1) Represent 1.5 and -0.75 with this format
(2) What is the rang of numbers it could represent ?(excluding denormalized
numbers.)
(1) Excess-15
1.5= 1.1*2^0 -0.75= -1.1*2^-1
EXP=0+15=15 EXP=15+(-1)=14
0 011111 100000 1 01110 100000
(2)
最大正數: 0 11110 111111
最小正數: 0 00001 000000
最大負數: 1 00001 000000
最小負數: 1 11110 111111
手邊沒解答,我也不知道對不對,能否大大幫忙?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.138.100.194
→
10/06 19:10, , 1F
10/06 19:10, 1F
→
10/07 11:06, , 2F
10/07 11:06, 2F
推
10/07 22:30, , 3F
10/07 22:30, 3F
討論串 (同標題文章)