home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!execu!mike
- From: mike@execu.execu.com (Mike McCants)
- Newsgroups: comp.lang.fortran
- Subject: Re: Ignoring Least Significant Bit in a Real Compare
- Message-ID: <3634@execu.execu.com>
- Date: 25 Aug 92 20:54:25 GMT
- References: <1992Aug21.203055.29668@aero.org> <1992Aug24.185047.27463@news.eng.convex.com>
- Distribution: usa
- Organization: Comshare, Inc. Austin Development Center
- Lines: 21
-
- In article <1992Aug24.185047.27463@news.eng.convex.com> joelw@convex.com (Joel Williamson) writes:
- >>I am working on a 60-bit CDC machine in Fortran-4.
- >> REQ = .FALSE.
- >> IF (ABS(X1-X2) .LT. EPS) REQ = .TRUE.
-
- >In article <1992Aug21.203055.29668@aero.org> wae@aero.org (William A. Emanuelsen) writes:
- >try:
- > J = I1 .OR. I2
- ^^
- Inclusive or?!
- Exclusive or [.XOR. or XOR(I1,I2)?] is correct.
-
- > REQ = (J.EQ.1) .OR. (J.EQ.0)
-
- In my opinion,
-
- REQ = ABS(X1-X2) .LT. EPS
-
- would still be faster on this CDC machine since normally floating
- point operations were nearly as fast as integer operations and it
- uses fewer operations.
-