Examples of REAL Declarations

The following example declares INDX, X, Y, and TOTAL as real variables.

REAL INDX,X,Y,TOTAL

The following example declares CALC, INDEX, and VALU as real variables. CALC is address-equated to the simple variable BOOL, and VALU is address-equated to the simple variable INTR. According to this declaration, CALC and BOOL share the same address, and VALU and INTR share the same address.

REAL CALC = BOOL, INDEX, VALU = INTR

The following example declares DISTANCE and REALINDEX as real variables. Because these variables are declared to be OWN, the variables retain their values when the program exits the block in which they are declared.

OWN REAL DISTANCE, REALINDEX