TINYINT
The TINYINT
data type is used for storing
very small whole numbers.
Syntax
TINYINT
Usage
The storage of TINYINT
variables
is based on 1 byte of signed data ( = 8 bits ).
The value range is from -128 to +127.
TINYINT
variables can be initialized with integer
literals:MAIN
DEFINE i TINYINT
LET i = 101
DISPLAY i
END MAIN
When assigning a whole number that exceeds
the TINYINT
range, the overflow error -8097 will
be raised.
TINYINT
variables are initialized
to zero in functions, modules and globals.
The TINYINT
variables
cannot be NULL
.
Data type conversion can be controlled by catching the runtime exceptions. For more details, see Handling type conversion errors.