Declarations and Types

Types

INTEGER
for exact whole numbers;


REAL and COMPLEX
for approximate, fractional numbers; for the latter a pair of REAL numbers are used;


CHARACTER
for strings of one or more characters;


LOGICAL
for objects which may have the values TRUE and FALSE, only.


DOUBLE PRECISION
Redundant and obsolete!


Variables

Examples:
  INTEGER :: count, number_of_students
  REAL    :: price, root_1, root_2

  count  = 42
  root_1 = 3.141
  root_2 = 1.77E-2

  CHARACTER         :: answer                           
  CHARACTER(LEN=10) :: name                             
  
  answer = 'Y'
  name   = 'Backus'

  LOGICAL :: Spock, Kirk

  Spock = .TRUE.
  Kirk  = .FALSE.

Implicit Declaration, IMPLICIT NONE

Case INsensitive


...previousup (conts)next...



About this document:

Produced from the SGML: /home/isd/public_html/_course_fortran_90/_reml_grp/index.reml
On: 10/2/2003 at 10:33:52
Options: reml2 -i noindex -l long -o html -p multiple