作者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
1F:推 pboywc:我也差不多是这样算 难道是答案错了吗? 补习班发的讲义题目 04/21 10:18
2F:→ pboywc:还是谢谢您 04/21 10:19
3F:→ guestoo:您客气了....有无其他版友要提供一下看法的 thx 04/21 11:55
4F:推 pboywc:应该是答案错了 今天问老师了 04/21 23:50
5F:推 choufeng:我算出来是4247A0 不晓得正解是多少? 04/27 10:14