FORTRAN 77 Language Reference

Constant Expressions

A constant expression is made up of explicit constants and parameters and the FORTRAN operators. Each operand is either itself another constant expression, a constant, a symbolic name of a constant, or one of the intrinsic functions called with constant arguments.

Examples: Constant expressions:

	PARAMETER (L=29002), (P=3.14159), (C='along the ') 
	PARAMETER ( I=L*2, V=4.0*P/3.0, S=C//'riverrun' ) 
	PARAMETER ( Q=6.4Q6, D=2.3D9 ) 
	K = 66 * 80 
	VOLUME = V*10**3 
	DO I = 1, 20*3 

There are a few restrictions on constant expressions: