How to interpret dots in an if statement?

John Smith

What do the dots mean in the following code?

IF ((TAU.GE.dts).AND.(TAU.LE.(dts+dth))) THEN
  a = b+c
END
Jason W

Before Fortran90, the dots were required around operators. You can now use the >= instead of .GE. and <= instead of .LE.. Being one of the oldest languages, there are a lot of things still carried through and supported - spacing and operators are definitely among the more interesting features.

Fortran90 New Features (see relational operators): https://gcc.gnu.org/onlinedocs/gcc-3.4.4/g77/Fortran-90-Features.html

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related