In article <43***********@mindspring.com>,
pete <pf*****@mindspring.com> wrote:
Regarding this question:
"How will you obtain the mantissa of a floating point number?"
and this answer:
"depends on specific compiler
It depends on what kind of floating point number it is
(IEEE754 or other?) and its type.
My question is:
Don't the modf functions return the mantissas
of floating point umbers?
No, the modf() functions break the values into decimal integral part and
decimal fractional part. The mantissa, on the other hand, might
describe the number as written in scientific notation and then
stripped of it's exponent (the E onward), but it might also describe
the binary fraction that is internally stored in the floating
point representation (in which case the "exponent" would be the
binary exponent... and you get issues of "biases" and issues of
special representations for 0...)
--
"Who Leads?" / "The men who must... driven men, compelled men."
"Freak men."
"You're all freaks, sir. But you always have been freaks.
Life is a freak. That's its hope and glory." -- Alfred Bester, TSMD