The Real Data Type
EQUEL/Fortran accepts real and double precision as legal real data types. The preprocessor accepts both 4-byte and 8-byte real variables. It makes no distinction between an 8-byte real variable and a double precision variable. The default size of a real variable is 4 bytes. However, you can override this size if you use a size indicator (*8) that follows the real keyword or the variable's name.
You can only use a real variable to assign or receive numeric data (both real, decimal, and integer). You cannot use it to specify numeric objects, such as table field row numbers.
VMS: The preprocessor expects the internal format of
real and
double precision variables to be the standard VAX format. For this reason, you should not compile your program with the
g_floating qualifier.
C 4-byte real variable
## real salary
C 8-byte real variable
## real*8 yrtoda
C 8-byte real variable
## double precision saltot
## real salary, yrtodate*8
Only use a real variable to assign or receive numeric data (both real and integer). Do not use it to specify numeric objects, such as table field row numbers.