I have to write a little funtion in Java for my computer architecture class that takes an integer and manually converts it to an 32-Bit IEEE floating point number.
I understand how to do all the bit manipulation. I know how to get the sign bit and the mantissa. I just don't know the algorithm for figuring out what the exponent bits should be.
If someone knows that algorithm it would be great if you could explain it to me.
Thanks in advance!
Ben
I understand how to do all the bit manipulation. I know how to get the sign bit and the mantissa. I just don't know the algorithm for figuring out what the exponent bits should be.
If someone knows that algorithm it would be great if you could explain it to me.
Thanks in advance!
Ben