Re: [問題] 浮點數

看板TransCSI作者 (Eureka!)時間19年前 (2006/04/21 02:25), 編輯推噓3(302)
留言5則, 3人參與, 最新討論串2/2 (看更多)
※ 引述《pboywc (AC)》之銘言: : 格式是 : 23 22~16 15~0 : S exp significand : 條件 : the exponent of floating point numbers is biased by adding 64 to : its value and the significand is normalized by choosing the expont : so that the binary point falls to the right of the leftmost 1 bit : which is not stored in the internal : 簡單來講應該就是 excess=64 base=2 還有1bit的隱藏位元 : 題目是 : Convert the decimal number 71.625 to its internal floating point : hexadecimal representation : 答案是4C3D0A : 不知道怎麼算的 : 懇請幫忙 : 謝謝 ( 71.625 ) = ( 1000111.101 ) = ( 1.000111101 ) * 2^6 decimal binary S = 0 exp = 6 + 64 = 70 = ( 1000100 ) binary significand = 0001111010000000 23 22 ~ 16 15 ~ 0 S exp significand ( 0 1000100 0001111010000000 ) = ( 441E80 ) hexadecimal 跟答案不一樣...囧 請問是哪邊的題目...... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.116.54.79

04/21 10:18, , 1F
我也差不多是這樣算 難道是答案錯了嗎? 補習班發的講義題目
04/21 10:18, 1F

04/21 10:19, , 2F
還是謝謝您
04/21 10:19, 2F

04/21 11:55, , 3F
您客氣了....有無其他版友要提供一下看法的 thx
04/21 11:55, 3F

04/21 23:50, , 4F
應該是答案錯了 今天問老師了
04/21 23:50, 4F

04/27 10:14, , 5F
我算出來是4247A0 不曉得正解是多少?
04/27 10:14, 5F
文章代碼(AID): #14Hz8cF2 (TransCSI)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #14Hz8cF2 (TransCSI)