Shawn,
Like you said, there is a lot of info out there about floating point numbers. However, working with floating point numbers is not an easy task. Fortunately for you, you only want to convert a decimal number into a 32-bit floating point. That part is not too hard
.
A 32-bit floating point number is divided into three parts, the sign, the exponent, and the mantissa. You should make yourself familiar with these concepts. After that, you should look at the methods for converting decimal numbers into floating points. There are many examples out there. Probably the hardest part of doing this is that you need to convert decimal fractions to binary numbers. For example: 6.25(base 10) = 110.01(base 2). Most decimal fractions are not as obvious and easy to convert to binary as the example I gave you. But again, fortunately for you there are many tutorials in the web on how to convert decimal fractions to binary numbers.
I hope that this post helped you and guide you in the right direction.
Robert
Bookmarks