MATLAB: The mantissa of a floating point number??

floating point numbermantissa

What is the mantissa of a floating point number? How would you find it?

Best Answer

It's the fractional part of a real number.
In MATLAB, you can calculate the mantissa of x as
>> x - floor(x)
There are lots of places to read about floating point numbers and their representation. Here's one:
Please see James Tursa's answer for a cautionary note about the two different definitions of mantissa! Since you asked about binary form, I expect you mean the one from the Cleve Moler article, not the Mathworld article definition (or the formula I gave).
Related Question