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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux