Expressing floating point numbers in IEEE standard?

How would you express a floating point number in IEEE standard? There would be three parts, the sign, the biased exponent, and the mantissa. But I don't quite understand how you would even break down a floating point number into these three parts.

 Accepted Answer

Did you look at my answer to your other question yet? Here:
The document I point you to in that answer talks about that exact topic. Here's the link again, for your convenience:

More Answers (2)

In addition to the links provided in the previous answers I would point you to the MATLAB function [F,E] = log2(X) to extract the parts of the floating point number(s).
MATLAB single and double precision numbers are already expressed in IEEE format internally.
There is an example of converting to the single precision form here

Asked:

Joe
on 17 Mar 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!