SMALLINT
The SMALLINT data type is used for storing small
whole numbers.
Syntax
SMALLINTUsage
The storage of SMALLINT variables
is based on 2 bytes of signed data ( = 16 bits ).
The value range is from -32,767 to +32,767.
SMALLINT variables can be initialized with integer
literals:MAIN
DEFINE i SMALLINT
LET i = 1234
DISPLAY i
END MAINWhen assigning a whole number
that exceeds the SMALLINT range, the overflow error -1214 will
be raised.
SMALLINT variables are initialized
to zero in functions, modules and globals.
Data type conversion can be controlled by catching the runtime exceptions. For more details, see Handling type conversion errors.