Working with data types

Every variable (and every literal) has a type, the so-called data type. The possible data types and their value ranges are described in chapter "Data types". At this point, a short overview shall suffice.

The type determines the kind of values that can be stored in a variable. A variable of the type integer can only store whole numbers. If you try to assign a string to it, this will cause an error.

The type also defines the kind of operations that you can apply to a variable or a literal. For instance, numbers can be multiplied, but this operation is not possible for strings.

The following chapters provide information on: