edited by
508 views
2 votes
2 votes
Add the following two floating point numbers $A$ and $B$ given in IEEE $754$ single precision format and show the sum $S$ in the same format.
$A: 0000011000100 \: 0000 \: 000000000000001$
$B: 1000011000100 \: 0000 \: 000000000000001$
edited by

1 Answer

1 votes
1 votes
Let us consider the value of P=+x

Then the value of Q will be -x respectively as 1 as MSB,

Now according to IEEE format...,

P+Q=+0      and       Q+P=-0

i.e., P+Q= 0000 0000 0000 0000 0000 0000 0000 0000

and Q+P= 1000 0000 0000 0000 0000 0000 0000 0000

The sign follows the first term in ambiguous cases.

Related questions