Thursday, October 4, 2007

Task 21

A one byte floating point numbering system uses 5 places for the matissa and 3 for he exponant. Convert the number -1.5 into a normalised floating number by filling in the following table.

+1.5 in binary is:
1.1

Packing the front of the binary in STEP1 with zeros to get the mantissa to the correct size gives:
0001.1

The 2s comliment form of the answer in step 2 is:
1110.1

Removing excess 1s from the front of the number and adding extra zeros at the back of the number to get the normailsed form gives us:
1.0100

To get the decimal place of the normilaised form answer in STEP 5 back to its pro-normilised position, th edecimal point needs to be moved:
1 place to the right

The exponant is therefore:
001

Putting the mantissa and the exponant together gives the fimal answer of:
10100001

1 comment:

Anonymous said...

yeah right this time (4)