Professional Documents
Culture Documents
Spring 2023 ASSIGNMENT 1
Spring 2023 ASSIGNMENT 1
Assignment No. 01
Spring 2023
A) Encode the (negative) decimal fraction -9/2 to binary using the 8-bit
floating-point notation.
Sol:
22 =4 21 = 2 20 = 1 2-1 = 1/2
1 0 0 1
Since contents of mantissa field are imagined to have radix point to their left
side, which must be moved to its original position with the help of exponent.
As it can be seen that radix point needs to be moved by 3 bits to the right.
The exponent should therefore be a positive 3, which is represented by 111 in
excess 4 notation. So we place 111 in exponent field and floating point
notaion becomes;
_1111001
For the sign bit, as the value being stored is negative, this means in sign bit we
need to put 1. The final form of fraction -9/2 in floating point notation will be
11111001