32-bit floating point binary query.

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
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
 
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.