32-bit floating point binary query.

AI Thread Summary
The discussion revolves around converting numbers into 32-bit floating point binary representation and vice versa. It clarifies that floating point numbers can represent both whole and decimal values, confirming that 56 can be converted into a floating point format. The hexadecimal value B28C0F34 is identified as a 32-bit quantity that needs to be interpreted as a floating point number. Participants emphasize the importance of understanding how to decode this hexadecimal representation into its decimal equivalent. Overall, the conversation aims to demystify the conversion process for floating point numbers.
Steve Collins
Messages
45
Reaction score
0
I’m hoping that someone will be able to clarify these questions that I have been given as I’m very confused.

1. Convert 56 832 into a 32-bit floating binary representation.
2. Convert the 32-bit floating point binary representation B28C0F34 into decimal.


I have watched a couple of YouTube videos and read some articles on the web about floating point numbers. I am under the impression that they are used to represent numbers with decimal points. Am I correct in thinking this? Maybe there has been a typo and the number should read 56.832?

Also, how is B28C0F34 a 32-bit floating point binary representation?

Any help would be much appreciated.

Thanks

Steve
 
Physics news on Phys.org
Steve Collins said:
I’m hoping that someone will be able to clarify these questions that I have been given as I’m very confused.

1. Convert 56 832 into a 32-bit floating binary representation.
2. Convert the 32-bit floating point binary representation B28C0F34 into decimal.


I have watched a couple of YouTube videos and read some articles on the web about floating point numbers. I am under the impression that they are used to represent numbers with decimal points. Am I correct in thinking this? Maybe there has been a typo and the number should read 56.832?

Also, how is B28C0F34 a 32-bit floating point binary representation?

Any help would be much appreciated.

Thanks

Steve

Floating point numbers do not have to have a fractional part, but they may. So you should still be able to convert a whole number into a floating point number (the exponent is just zero).

B28C0F34 is just a 32-bit quantity. Each letter/number represents a hex nibble 0-F. How you interpret the quantity is up to you (in this case you are to decode its floating point values).
 
I spent some time on this earlier today and managed to figure floating point numbers out.

Once again, thanks for the direction berkeman.
 
Back
Top