Expressing floating point numbers in IEEE standard?

4 vues (au cours des 30 derniers jours)
Joe
Joe le 17 Mar 2013
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.

Réponse acceptée

the cyclist
the cyclist le 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:

Plus de réponses (2)

James Tursa
James Tursa le 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 le 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

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by