Data types

Variables in the ARL rule language must have an associated data type.

Data types are divided into two groups: primitive data types and non-primitive data types.

Primitive types

The ARL rule language supports eight primitive data types:

Table 1. List of supported primitive types
Data type Description
Boolean Stores true or false values
byte Stores whole numbers from -128 to 127
char Stores a single character
Note: You can also use ASCII values to display certain characters.
double Stores fractional numbers with a precision of 15 decimal points
float Stores fractional numbers with a precision of 6 to 7 decimal digits
int Stores whole numbers from -2,147,483,648 to 2,147,483,647
long Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
short Stores whole numbers from -32,768 to 32,767

Non-primitive data type

The ARL rule language supports one non-primitive data type: string. The string data type stores a set of characters surrounded by double quotes.

For example:
"Hello world"