Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!spdcc!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.lang.c Subject: Re: Bug? Message-ID: <718@lakart.UUCP> Date: 16 Oct 89 17:04:16 GMT References: <10895@riks.csl.sony.co.jp> Organization: Lakart Corporation, Newton, MA Lines: 19 diamond@csl.sony.co.jp (Norman Diamond) sez: > In article <9986@alice.UUCP> ark@alice.UUCP (Andrew Koenig) writes: > >>Even if the == operator includes a fuzz factor, it's hard to imagine >>a sensible implementation in which (a-b)==0 is true unless a and b >>are truly identical. > > Sorry Mr. Koenig, it's easy to imagine. Every hardware floating-point > system and most software ones have situations where (a-b)==0 but a != b. Agreed. Also would any experts on ones complement systems like to throw in a couple of cents? I am no expert on ones complement, but it might be possible there. Then again, it might not be possible ..... H*ll I don't know. -- dg@lakart.UUCP - David Goodenough +---+ IHS | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | AKA: dg%lakart.uucp@xait.xerox.com +---+