1.f1f2...fn r s
”.
The round bit r
and sticky bit s
appear after the last fraction bit fn
.
IEEE 754 standard specifies four modes of rounding:
rs
= “11”) or (rs
= “10” and fn
= ‘1’).
Otherwise, truncate result significand to 1.f1f2...fn
.
r
or s
= ‘1’.
r
or s
= ‘1’.
–1.11111111111111111111111 0 1 × 2-7where the round and sticky bits are in blue and red colors, respectively.
–1.11111111111111111111111×2-7
since r
= ‘0’.
–10.00000000000000000000000×2-7
since negative and s
= ‘1’.
Renormalize and increment exponent (because of carry).
Final rounded result is –1.00000000000000000000000×2-6
.
I bought the world’s worst thesaurus yesterday. Not only is it terrible, it’s also terrible. |