From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25053 invoked by alias); 28 Nov 2004 11:23:55 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 24970 invoked from network); 28 Nov 2004 11:23:49 -0000 Received: from unknown (HELO mail.iinet.net.au) (203.59.3.39) by sourceware.org with SMTP; 28 Nov 2004 11:23:49 -0000 Received: (qmail 14299 invoked from network); 28 Nov 2004 11:23:47 -0000 Received: from unknown (HELO iinet.net.au) (203.217.52.16) by mail.iinet.net.au with SMTP; 28 Nov 2004 11:23:47 -0000 Message-ID: <41A9A5D1.2020705@iinet.net.au> Date: Sun, 28 Nov 2004 11:23:00 -0000 From: Sisyphus User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313 MIME-Version: 1.0 CC: gcc Subject: Re: Internal (bit) representation of float and double. References: <41A95819.7060506@iinet.net.au> In-Reply-To: <41A95819.7060506@iinet.net.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00197.txt.bz2 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