Declare a variable or constant to be of real (floating point) data type

Syntax


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

Description


The REAL keyword is used in conjunction with a DIMENSION statement to declare a variable or constant to be of floating point data type.  While all variables and constants are implicitly declared to be of type REAL unless specified otherwise, the REAL keyword is used when defining array variables/constants of floating point type.

Example


dimension real a[10], b[2, 3]