作者gn00618777 (123)
看板Grad-ProbAsk
标题[理工] [计组]-浮点数
时间Tue Oct 6 16:30:41 2009
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
1F:→ gn00618777:我这样算对嘛? 10/06 19:10
2F:→ gn00618777:QQ 10/07 11:06
3F:推 svanavs:问range最好写成科学记号且normalized表示法 10/07 22:30