作者guestoo (Eureka!)
看板TransCSI
標題Re: [問題] 浮點數
時間Fri Apr 21 02:41:08 2006
※ 引述《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
推 pboywc:我也差不多是這樣算 難道是答案錯了嗎? 補習班發的講義題目 04/21 10:18
→ pboywc:還是謝謝您 04/21 10:19
→ guestoo:您客氣了....有無其他版友要提供一下看法的 thx 04/21 11:55
推 pboywc:應該是答案錯了 今天問老師了 04/21 23:50
推 choufeng:我算出來是4247A0 不曉得正解是多少? 04/27 10:14