Re: [問題] 浮點數
※ 引述《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
04/21 11:55, 3F
推
04/21 23:50, , 4F
04/21 23:50, 4F
推
04/27 10:14, , 5F
04/27 10:14, 5F
討論串 (同標題文章)