My solution:
As stated in the question one of the solutions is 01000110.
So assuming this is the first representation of 3/8 in floating –point format.
3/8 can be written as 0.011 in binary having decimal and integer part.
01000110 is 0110.0 × 2-4
So other solutions will be
01000011 is 0011.0 × 2-3
01100001
01110000
The last two solutions are not precise due to fewer bits in Mantissa. This is the limitation of floating point numbers. Preciseness can be improve by having representation in more bits .

No comments:
Post a Comment