Path: 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 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. ======