Representation of Floating Point Numbers in Single Precision ...
Representation of Floating Point Numbers in Single Precision ...
Representation of Floating Point Numbers in Single Precision ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
(1)<br />
(2)<br />
Start<br />
Compare the exponents <strong>of</strong> the two numbers<br />
shift the smaller number to the right until its<br />
exponent matches the larger exponent<br />
Subtract the mantissas<br />
Simplified<br />
<strong>Float<strong>in</strong>g</strong> <strong>Po<strong>in</strong>t</strong><br />
Subtraction<br />
Flowchart<br />
(3)<br />
Normalize the sum, either shift<strong>in</strong>g right and<br />
<strong>in</strong>crement<strong>in</strong>g the exponent or shift<strong>in</strong>g left<br />
and decrement<strong>in</strong>g the exponent<br />
(4)<br />
Overflow or<br />
Underflow ?<br />
Generate exception<br />
or return error<br />
(5)<br />
If mantissa = 0<br />
set exponent to 0<br />
Done<br />
EECC250 - Shaaban<br />
#12 lec #17 W<strong>in</strong>ter99 1-27-2000