954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Floating Point Representation

Floating Point Representation:

I have to convert 21.426304 into an Unnormalized number. It has to be 16 bits long with a 1 bit sign, 5 bit exponent, and a 10 bit sinificand. I understand that you have to take the fraction of the original number or something along those lines but i have no clue how. Any help in understanding how to do this so i can continue on with the rest of the homework problem would be great...Thanks

Foxtildawn
Newbie Poster
15 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

I don't know what "unnormalized" means, but here's how to write it as a normalized floating pt. number: Since the smallest pwer of 2 bigger than the given number is 32, write it as
21.426304 = 32*0.669572, so the exponent is 5 and the significand is .669572. You've got to write this last number to base 2.

.669572 = a1/2+a2/4+a3/8+... Multiply both sides by 2 and take integer parts. You conclude a1=1. Now procede at your own risk.

murschech
Junior Poster in Training
60 posts since Dec 2004
Reputation Points: 21
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You