Integer Data Type

Language Items List

Definition:

Integer variables are stored as 16-bit numbers, which require 2 bytes of storage. Integers can be used to represent:

images/Phx90000.gif Numbers in the designated range

images/Phx90000.gif Boolean values

images/Phx90000.gif Enumerated values

Integers can only hold whole numbers in the range of -32768 to 32767. Boolean values are those that can have only one of two states: -1 for true and 0 for false. An enumerated value can contain a finite set of unique whole numbers, the meaning of each is determined by the context in which it is used. Enumerated values are helpful for selecting among a known number of choices.

Type-declaration character:

% (ANSI character 37)

See Also:

Long Data Type
Data Types