The following relational operators deliver a LOGICAL result when combined with numeric operands,
For example,
bool = i .GT. j boule = i > j IF (i .EQ. j) c = D IF (i == j) c = D
When using real-valued expressions (which are approximate) .EQ. and .NE. have no real meaning.
REAL :: Tol = 0.0001 IF (ABS(a-b) .LT. Tol) same = .TRUE.
For more information, click here