=========================preview======================
(COMP180)final01_q2.pdf
Back to COMP180 Login to download
======================================================
file:///F|/doc/paper/COMP/COMP180/final01_q2.txt
2a)
0.
Is it divisor == 0 -> Yes -> Exception [ NEW !! ] |

1.
subtract the biased exponents of the two numbers, adding the bias from the

difference to get the new biased exponent
|


2.
divide the significant of the dividend by the divisor

3.
Normalize the quotient, shift left and decrementing the exponent |

Ovewrflow or underflow ? -> Yes -> Exception
|


4.
round the significant to the appropriate number of bits |


still normalized ? -> No -> goto step 3
| Yes
V

Done
2b)
Divide 1.110 x 10^10 by 1.100 x 10^-5 .
Step 1 -> exponent = 10 - (-5) = 15 ( assume the biased is handled )
Step 2 -> 1.110 / 1.100 = 1.0090909 ....
Step 3 Quotient Normaliztion ? -> Yes Step 4 round the significant 1.00909 ... = 1.0090909 (assume 7 digits) still normalized ? Yes . Then we are done
The result is 1.00909 x 10^15
file:///F|/doc/paper/COMP/COMP180/final01_q2.txt[2009/5/16 1:16:13]