m/c Precision vs. Desired Tolerance



Hello;
Assuming the m/c precision EPSILON() for real data type is:
EPSILON(real) = 1.192 092 9E-7
and
X1 = 0.123 456 78
X2 = 0.123 456 79
X3 = (X2-X1) ! smaller than EPSILON
TOL= 1.E-8 ! smaller than EPSILON
then, which statement label the following arithmetic IF statement
would transfer control to ??:
IF (X3 - TOL) 1,2,3

(I guess, label 1 NOT 2, since X3 is smaller than the m/c smallest
increment EPSILON in single precision. Correct ??)

Thank you.
Monir

.



Relevant Pages

  • Re: m/c Precision vs. Desired Tolerance
    ... which statement label the following arithmetic IF statement ... IF (X3 - TOL) 1,2,3 ... increment EPSILON in single precision. ... The standard would allow any of the three choices here. ...
    (comp.lang.fortran)
  • Re: m/c Precision vs. Desired Tolerance
    ... Not sure if this qualifies as 'dim history', but the Microsoft Fortran ... Compiler v3.31 ... IF (X3 - TOL) 1,2,3 ... increment EPSILON in single precision. ...
    (comp.lang.fortran)