Value-Type Binding

Explain™ data are stored as variables similar to those in common programming languages like Pascal or FORTRAN. However, the data type and the data value are chained together. In Pascal and C, the data type is bound to the variable. So when you declare:

float Var1; /* C Language */

Var1 = 5.0;

... /* other statements */

Var1 = 6;

Var1 is a float forever and always. In C, when the value 6 is assigned to Var1, it is first converted to the float value 6.0 and then stored in Var1.

In Explain, a similar set of statements is possible:

Var1 = 5.0 ; Explain

... ; other statements

Var1 = 6

For operations on different data types together, see here.