next up previous contents
Next: Initialisation Up: Data Objects Previous: Character Declarations

Constants (Parameters)

Symbolic constants, oddly known as parameters in Fortran, can easily be set up either in an attributed declaration or parameter statement,

   REAL, PARAMETER :: pi = 3.14159 
   CHARACTER(LEN=*), PARAMETER :: &
                     son = 'bart', dad = "Homer"

CHARACTER constants can assume their length from the associated literal (LEN=*).

Parameters should be used:

For more information, click here gif


next up previous contents
Next: Initialisation Up: Data Objects Previous: Character Declarations

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.