about float & double
denis.spir at gmail.com
Tue Jan 18 13:54:20 PST 2011
Is there somewhere a (clear) doc about float/double internals?
Some more particuliar questions:
What is the internal bit layout? (mantissa, sign, exponent)
Can I assume the "integral range" is [-2^(m-1) .. 2^⁽m-1)-1], where m is
the number of mantissa bits?
What are the values used to represent thingies like NaNs, inf, error?
(Or are there not represented as values?)
How would you get a float's integral and fractional parts without
performing arithmetic? (I think at bit ops, indeed)
vita es estrany
More information about the Digitalmars-d-learn