A SIMPLE VARIABLE declaration declares simple variables that can be used in a manner appropriate to the specified type.
<simple variable declaration>
──┬─<Boolean declaration>──┬───────────────────────────────────────────┤ ├─<complex declaration>──┤ ├─<dinteger declaration>─┤ ├─<double declaration>───┤ ├─<integer declaration>──┤ └─<real declaration>─────┘
Type-transfer functions can be used, as can the equation part construct, to perform operations on a variable other than those that are valid for the type of the variable.
Each type of simple variable is used as follows:
|
Type |
Meaning/Description |
|
BOOLEAN |
Boolean values. A Boolean variable is a one-word variable in which the Boolean value (TRUE or FALSE) depends on the low-order bit (bit zero) of the word. The use of partial word parts and concatenation enables all 48 bits to be tested or manipulated as needed. |
|
COMPLEX |
Complex values. A complex variable consists of two real variables in which the first variable contains the real part and the second variable contains the imaginary part. |
|
DINTEGER |
Double integer arithmetic values. A double integer value is one that has an exponent of 0 (zero) and no fractional part. Dinteger variables are two-word variables. |
|
DOUBLE |
Double-precision arithmetic values. A double-precision variable is a two-word variable. |
|
INTEGER |
Integer arithmetic values. An integer value is one that has an exponent of 0 (zero) and no fractional part. Integer variables are one-word variables. |
|
REAL |
Real arithmetic values. A real value is one that can have an exponent and a fractional part. Real variables are one-word variables. |
See Data Representation for more information regarding the internal structure of each type of simple variable.

