双精度小数和单精度小数 啥区别?????

[复制链接]
查看11 | 回复1 | 2007-3-20 16:23:41 | 显示全部楼层 |阅读模式
Single PrecisionThe IEEE single precision floating point standard representation requires a 32 bit word, which may be represented as numbered from 0 to 31, left to right. The first bit is the sign bit, S, the next eight bits are the exponent bits, 'E', and the final 23 bits are the fraction 'F':S EEEEEEEE FFFFFFFFFFFFFFFFFFFFFFF0 1
8 9
31Double PrecisionThe IEEE double precision floating point standard representation requires a 64 bit word, which may be represented as numbered from 0 to 63, left to right. The first bit is the sign bit, S, the next eleven bits are the exponent bits, 'E', and the final 52 bits are the fraction 'F':S EEEEEEEEEEE FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0 1
11 12
63主要就是指数和基数的位数不同,因此能表示的最大数和小数点后的精度不同。最大精度可以参考下面的链接参考资料:http://www.psc.edu/general/software/packages/ieee/ieee.html本回答被提问者采纳
回复

使用道具 举报

千问 | 2007-3-20 16:23:41 | 显示全部楼层
没区别哦11
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行