Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!ucsd!pacbell.com!pacbell!att!dptg!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: Floating point non-exactness Message-ID: <11205@alice.UUCP> Date: 17 Aug 90 13:01:33 GMT References: <5467@quanta.eng.ohio-state.edu> <11160@alice.UUCP> <2646@dataio.Data-IO.COM> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 24 In article <2646@dataio.Data-IO.COM>, bright@Data-IO.COM (Walter Bright) writes: > In article <6855@ozdaltx.UUCP> doug@ozdaltx.UUCP (Doug Matlock) writes: > , ark@alice.UUCP (Andrew Koenig) writes: > << It also guarantees exact results > << for primitive operations including addition, subtraction, multiplication, > << division, and square root. > IEEE enables you to specify that an exception is generated if the result > is not exact. Yes. Also, and this is the point I was trying to make before, for the primitive operations I mentioned, IEEE requires that the result of each operation be exactly what would be obtained by doing the operation in infinite precision and then rounding it. In other words, for those operations, all IEEE implementations must give bit-for-bit identical results. -- --Andrew Koenig ark@europa.att.com