Integer

Parent Previous Next

Integer.

The Integer type represents the mathematical set of positive and negative integers.


Type Specification.

Details of the type and the supported operators:


Category

Description

Default

Standard Type

It is 32 bit (4 byte) on all platforms. Value range: -2,147,483,648 to 2,147,483,647.

0


Category

Operators

Primary

x.y   foo(x)   arr[x]

Unary

+   -

Multiplicative

*   /

mod  div

Additive

+   -

Relational

<   >    <=   >=

Equality

==   <>


Assignment

:=    +=    -=    *=    /=


Example:


 Integer i := 1, j := 2, k := -3, res;

 res := i + j; //Now res == 3;

 res *= k;     //Now res == -9;



Standard Functions.

This chapter contains descriptions on the next pages of all the standard functions recognized by the compiler as member-functions of the Integer type.