Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!veritas!amdcad!weitek!jetsun!rober From: rober@jetsun.weitek.COM (Don Rober) Newsgroups: comp.lang.c Subject: Re: using ! Message-ID: <1990Dec21.213826.23245@jetsun.weitek.COM> Date: 21 Dec 90 21:38:26 GMT References: <009417DC.37A9DCA0@cemmva.cem.msu.edu> Reply-To: rober@jetsun.WEITEK.COM (Don Rober) Organization: WEITEK, Sunnyvale CA Lines: 15 In article <009417DC.37A9DCA0@cemmva.cem.msu.edu> heroux@cemmva.cem.msu.edu (Brett Heroux) writes: > >Is !(a > b) portable? slower or faster than a <= b? I am leaving for vacation, so I won't consider the integer case. :>) If you are using IEEE floating point numbers, the two cases aren't even equivalent. If one or both have a vane of NaN, both relations are false. The negation of false in the first example will then produce true. Just another interesting thing to watch out for in IEEE floating point. -- ---------------------------------------------------------------------------- Don Rober UUCP: {pyramid}!weitek!rober