🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9996

Re: C question

#9996
From: Christopher Mills
Date: Tue, 11 Oct 1988 03:08
19 lines
1249 bytes
In article <56733UH2@PSUVM> UH2@PSUVM.BITNET (Lee Sailer) writes:

>	[ Why do these give different answers using FFP ]

>     r1 = 1.0/(double)INT_MAX

	Lattice can do this at compile time, and probably uses double
precision.

>     double im = INT_MAX;
>     r2 = 1.0/im;

	Latice dose this at runtime using FFP and gets a different answer
due to roundoff.  (at least that's my guess...)
-=-
_________________________________________________________________________
| Christopher Mills              | "If you see someone without a smile, |
| mills@baloo.eng.ohio-state.edu |  give them mine - I'm not using it." |
====== My thoughts are not my own--I'm posessed by mailer daemons. ======
Technical Details
Message-ID: <752@accelerator.eng.ohio-state.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!rochester!rutgers!tut.cis.ohio-state.edu!accelerator.eng.ohio-state.edu!baloo.eng.ohio-state.edu!mills
References: <56733UH2@PSUVM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!rochester!rutgers!tut.cis.ohio-state.edu!accelerator.eng.ohio-state.edu!baloo.eng.ohio-state.edu!mills
From: mills@baloo.eng.ohio-state.edu (Christopher Mills)
Newsgroups: comp.sys.amiga.tech
Subject: Re: C question
Message-ID: <752@accelerator.eng.ohio-state.edu>
Date: 11 Oct 88 03:08:37 GMT
References: <56733UH2@PSUVM>
Sender: news@accelerator.eng.ohio-state.edu
Reply-To: mills@baloo.eng.ohio-state.edu (Christopher Mills)
Organization: Ohio State Univ, College of Engineering
Lines: 19