05.03.2015 Views

Representation of Floating Point Numbers in Single Precision ...

Representation of Floating Point Numbers in Single Precision ...

Representation of Floating Point Numbers in Single Precision ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

(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 />

Add the significands (mantissas)<br />

Simplified<br />

<strong>Float<strong>in</strong>g</strong> <strong>Po<strong>in</strong>t</strong><br />

Addition<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 />

#8 lec #17 W<strong>in</strong>ter99 1-27-2000

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!