From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id F07F430151 for ; Tue, 31 Oct 2000 08:10:59 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id e9VDAxw00938 for axp-list@listman.redhat.com; Tue, 31 Oct 2000 08:10:59 -0500 Received: from pop3.dvic.com (IDENT:root@[63.237.68.6]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id e9VDAxD00934 for ; Tue, 31 Oct 2000 08:10:59 -0500 Received: from voicenet.com ([63.237.68.215]) by pop3.dvic.com (8.9.3/8.8.7) with ESMTP id IAA17903 for ; Tue, 31 Oct 2000 08:06:26 -0500 Message-ID: <39FEBED4.DDEF7414@voicenet.com> Date: Tue, 31 Oct 2000 07:45:08 -0500 From: Uncle George X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.16 alpha) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: strange (incorrect) arithmetic behaviour References: <39FE9C23.7A6CEF2A@msdw.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors I get ( on rh6.2 ) on an xp1000 -339999995214436424907732413799364296704.000000 1.000000 -339999995214436424907732413799364296704.000000 Richard Polton wrote: > Hi, > > I have stock RH6.1 on my LX164 machine. When executing the following > code I see SIGFPE. > > #include > #include > > main() > { > float a = -3.4e38; > float b = 1.0; > float c = a*b; > printf( "%f\n%f\n%f\n", a, b, c); > } > > In gdb I can see that c contains 2.4e-314 which is not the > expected result ;). To compile I use egcs-2.91.66 as supplied with > RH6.1 with no additional command line options. > What am I missing or doing incorrectly? > > Thanks, > > Richard > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list