Titan



integer


The keyword integer denotes a simple basic type whose distinguished values are the positive and negative whole numbers, including zero.

Related keyword:


integer


Example 1:

var integer v_egeesz := 65213;

The variable defined is called v_egeesz and has the initial value 65213.


Example 2:

var integer v_tartomaany (3 .. 7);

The variable v_tartomaany may have the following values: 3, 4, 5, 6, 7.


Example 3:

var integer v_schlagbaum (12, -12);

The variable called v_schlagbaum may hold the values 12 and -12 only .


Example 4:

var integer v_2hataar ( 1, 3, 7 .. 9, 11 );

The variable v_2hataar may hold the values 1, 3, 7, 8, 9, 11.


Example 5:

const float c_csarnoka := int2float (3);

The constant called c_csarnoka will have the floating point value 3.0.



BNF definition of integer
BNF definition of integer value