Previous: 2.2.6.2. Character Types To the Table of Contents Next: 2.2.6.4. Enumeration Types
2.2.6.2. Character Types Table of Contents 2.2.6.4. Enumeration Types

- 2.2.6.3. -
Table of Contents
2. TMT Pascal Language Description
2.2. Pascal Language Structure
2.2.6. Types
2.2.6.3. Integer Types


2.2.6.3. Integer Types


Integer types may contain both positive and negative integer values. Integer values may range from -2,147,483,648 to 2,147,483,647 and other ranges are also supported. Each integer variable requires two bytes of storage. The following is a list of additional predefined integer types.

Integer Types:
TypeRangeFormat
ShortInt128 .. 127signed 8-bit
Integer2,147,483,648 .. 2,147,483,647signed 32-bit
SmallInt-32,768 .. 32,767signed 16-bit
LongInt2,147,483,648 .. 2,147,483,647signed 32-bit
Byte0 .. 255unsigned 8-bit
Word0 .. 65,535unsigned 16-bit
DWORD0 .. 4,294,967,295unsigned 32-bit
LongWord0 .. 4,294,967,295unsigned 32-bit
Cardinal0 .. 4,294,967,295unsigned 32-bit
Int64-2^63 .. 2^63 -1signed 64-bit
On the Intel 386+ CPU's, operations performed with 32-bit integers are faster than operations with 16-bit ones. This is due to the fact that registers on the 32-bit processors are 32 bits wide.


Previous: 2.2.6.2. Character Types To the Table of Contents Next: 2.2.6.4. Enumeration Types
2.2.6.2. Character Types Table of Contents 2.2.6.4. Enumeration Types

- 2.2.6.3. -