public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Internal (bit) representation of float and double.
@ 2004-11-28  5:52 Sisyphus
  2004-11-28 11:23 ` Sisyphus
  0 siblings, 1 reply; 2+ messages in thread
From: Sisyphus @ 2004-11-28  5:52 UTC (permalink / raw)
  To: gcc

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) ?

Cheers,
Rob

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Internal (bit) representation of float and double.
  2004-11-28  5:52 Internal (bit) representation of float and double Sisyphus
@ 2004-11-28 11:23 ` Sisyphus
  0 siblings, 0 replies; 2+ messages in thread
From: Sisyphus @ 2004-11-28 11:23 UTC (permalink / raw)
  Cc: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-28 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-28  5:52 Internal (bit) representation of float and double Sisyphus
2004-11-28 11:23 ` Sisyphus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).