Floating Point Arithmetic Example
Floating Point Arithmetic Example
1. Rewrite the smaller number such that its exponent matches with the
exponent of the larger number.
8.70 × 10-1 = 0.087 × 101
If the mantissa does not fit in the space reserved for it, it has to be
rounded off.
1. Rewrite the smaller number such that its exponent matches with the
exponent of the larger number.
-1.110 × 2-2 = -0.1110 × 2-1
Correct!
If we add biased exponents, bias will be added twice. Therefore we need to subtract it
once to compensate:
Can only keep three digits to the right of the decimal point, so the result
is
10.212 × 105
4. Round it
1.021 × 106
Since the original signs are different, the result will be negative
-1.110 × 2-3