floats allocate bits to three different parts: the sign indicator, s, which says whether a number is positive or negative; characteristic or exponent, e, which is the power of 2; and the fraction, f, which is the coefficient of the exponent.
浮点数的表示分为三个部分:
- 符号位
s
,指示该浮点数为正数还是负数; - 指数位
e
,表示为2为底的幂; - 分数位
f
,表示幂的系数部分;