在Java中,可以存储的尾数部分的最大数字是多少?
在下面的链接中 http://steve.hollasch.net/cgindex/coding/ieeefloat.html
Sign Exponent Fraction Bias
Single Precision 1 [31] 8 [30-23] 23 [22-00] 127
这是否意味着我们只能存储0到2^8个组合?
在Java中,可以存储的尾数部分的最大数字是多少?
在下面的链接中 http://steve.hollasch.net/cgindex/coding/ieeefloat.html
Sign Exponent Fraction Bias
Single Precision 1 [31] 8 [30-23] 23 [22-00] 127
在float
中,尾数有23位,但存储的值是规格化的,这意味着有一个隐含的首位1和一个小数点。这将使其有效位数增加到24位。