Arithmetic Operators


Fortran has four types of operators: arithmetic, relational, logical, and character. The following is a table of these operators, including their priority and associativity.

Type Operator Associativity
Arithmetic ** right to left
* / left to right
+ - left to right
Relational < <= > >= == /= none
Logical .NOT. right to left
.AND. left to right
.OR. left to right
.EQV. .NEQV. left to right

Some Useful Notes:

Click here for single mode arithmetic expressions
Click here for mixed mode arithmetic expressions