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

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.