This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Internal (bit) representation of float and double.


Sisyphus wrote:
Hi,

If I code:

float a = 1.0;
double b = 1.9;

is there a way I can view the bit structure of a and b ?

Does anyone have a link to an explanation of the way bits are assigned to floats and doubles (with gcc) ?


An offlist reply led me to:


http://www.psc.edu/general/software/packages/ieee/ieee.html

which covers it pretty well.

Cheers,
Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]