Declare a variable or constant to be of integer value

Syntax


dimension integer <variable name 1>, <variable name 2>, …

Description


The INTEGER keyword is used in conjunction with a DIMENSION statement to declare a variable or constant to be of integer data type.  All variables and constants are implicitly assumed to be floating point values unless a DIMENSION statement in conjunction with a type specified (INTEGER, LOGICAL, etc…) is used to specify otherwise.

Example


dimension integer i  ! this variable will be used for loop indexing


for i = 1, 10

   totals[i] = totals[i] + a[i]

end