From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,47f79c0da38c8a0 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2003-06-20 00:36:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!magellan.eva.mpg.DE!not-for-mail From: Rigo Schultz Newsgroups: comp.os.linux.alpha Subject: Re: floating point problem Date: Fri, 20 Jun 2003 09:36:18 +0200 Message-ID: References: <874r2mkon5.fsf@student.uni-tuebingen.de> NNTP-Posting-Host: magellan.eva.mpg.de (194.94.96.194) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1056094581 24355994 194.94.96.194 (16 812) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en In-Reply-To: Xref: archiver1.google.com comp.os.linux.alpha:7765 Robert M. Riches Jr wrote: > For many of these problems, the solution is to add the > -mieee option to the compile command. This has made a big > difference for me on several packages. -mieee works quite good. but i get wrong results. #include int main(void) { float check; check = 5.877472e-39 / 2.0; printf("Check: %e \n", check); return (0); } on x86:>Check: 2.938736e-39 on alpha:>Check: 5.562685e-309 It's only a little bit different :o( thanks