Re: CDC Floating point = tests?



APL automatically did a fuzzy compare of real numbers based on the machine precision;
That code was implented in Fortran by me seveal years ago. If this is what you mean,
see:
http://ftp.cac.psu.edu/pub/ger/fortran/hdk/eps.f90

See logical functions, TEQ, TNE, etc..

(Comments in related function, TFLOOR document the APL connectioin).

The example driver illustrates use of these logical functions.

Skip Knoble

On 30 Jan 2007 09:39:47 -0800, "stocksami@xxxxxxxxxxxxx" <stocksami@xxxxxxxxxxxxx> wrote:

-|On the old CDC machines running EKS you could use a regular if test to
-|see if two floating point values were equal, and it worked! I've
-|ported lots of code from EKS to other platforms and I've had to change
-|those lines of codes many many times. I'm currently doing another
-|upgrade to one of those programs. It would read in floating point
-|values with formatted read statements and compare to other floating
-|point values. They weren't integer values either. The code relied
-|heavily on this and it worked fine. How did this work? How did the
-|CDC compiler handle this?

.