Internal (bit) representation of float and double.

Sisyphus kalinabears@iinet.net.au
Sun Nov 28 11:23:00 GMT 2004


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



More information about the Gcc-help mailing list