Expressing floating point numbers in IEEE standard?

8 views (last 30 days)
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

the cyclist
the cyclist on 17 Mar 2013
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)

James Tursa
James Tursa on 17 Mar 2013
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).

Walter Roberson
Walter Roberson on 17 Mar 2013
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

Community Treasure Hunt

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

Start Hunting!