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本回答被提问者采纳
|