next up previous contents
Next: Literal Constants Up: A quick tour of Previous: Assignment   Contents

Intrinsic Numerical Operations

NUMERIC_TYPE :: a,b
NUMERIC_TYPE :: [a] b

Fortran, like any other language, defines several operators that act on numerical type variables. The addition, subtraction, multiplication, division and exponentiation operators are denoted


respectively. Nothe that addition and subtraction can be monadic (e.g. or ) or dyadic (e.g. ) operators. Also note that we can raise a positive real number to a real power, e.g. , but not .

In arithmetic expressions different numerical types can be used (will see later), but we usually cannot mix numerical and character, or numerical and logical variables.



Adrian Sandu 2001-08-26