Thursday, 4 October 2007

Task 22

A one-byte floating point numbering system uses 5 places for the mantissa and 3 for the exponent. Convert the number -4.0 into a normalised floating-point number by filling the following table.

Step 1 : 4.0 in binary : 100

Step 2 : Mantissa : 00100

Step 3 : 2s Complement : 11100

Step 4 : Normalised : 111.00

Step 5 : Proper Normalised : 1.0000

Step 6 : Decimal place needs to be moved 4 to right to get the pre-normalised form.

Step 7 : The exponent is therefore : 100

Step 8 : Final answer : 10000100

No comments: