Floating point conversion (hmwk)
Q1. Consider the following 8 bit floating point representation based on
the IEEE floating point
format.
1. Format A:
There is one sign bit.
There are k=3 exponent bits.
There are n=4 fraction bits.
2. Format B:
There is one sign bit.
There are k=4 exponent bits.
There are n=3 fraction bits.
Below, you are given some bit patterns of pattern A. Your task is to find
out the values of numbers given
by format A and also convert them to the closest value in format B.
Format A Format B
Bits Value Bits
1 010 1000
1 110 0000
0 101 1010
0 000 1001
This is homework... I don't want the assignment done for me. I just want
to learn on how to convert. Floating point gets me extremely confused.
Can someone just please make up a "Format A" and show me how to get the
value/convert step-by-step? Thank you.
No comments:
Post a Comment