From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22004 invoked from network); 30 Nov 1998 13:15:36 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 30 Nov 1998 13:15:36 -0000 Received: from iplink.net (iplink.net [192.139.81.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA28222 for ; Mon, 30 Nov 1998 08:13:31 -0500 Received: from iplink.net ([192.139.81.2]:7431 "HELO caesar.iplink.net" ident: "NO-IDENT-SERVICE") by caesar.iplink.net with SMTP id <26734-19392>; Mon, 30 Nov 1998 09:22:09 -0500 Date: Mon, 30 Nov 1998 09:22:09 -0500 (EST) From: Alvin Starr To: axp-list@redhat.com Subject: Re: Floating point problems In-Reply-To: <36626B12.3809D30E@frankfurt.netsurf.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII try the following main() { double x = 1.0; double y = 1e-155; x *=(1e-155*y); printf("%e %e %e\n",(1e-155*y),x,1e-310); } this generates the same result as the original program but will not cause a trap. Alvin Starr || voice: (416)585-9971 Interlink Connectivity || fax: (416)585-9974 alvin@iplink.net ||