Data Types#

Types describe what data a variable contains.

There are multiple simple types:


Integers can hold whole numbers, like 1, 2, -10 or 30000:

int number = 42;


For storing text you can use strings:

string text = "Hello, Vala!";


A boolean can have only true or false as the value:

bool vala_is_great = true;

Floating Point Number#

Floating Point Numbers are numbers, that can have a point, so not only whole numbers:

float pi = 3.141;

Also useful#

  • For all builtin simple types you can look here.