Language basics / Data types |
The SMALLINT data type is used for storing small whole numbers.
SMALLINT
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.
When 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.
MAIN DEFINE i SMALLINT LET i = 1234 DISPLAY i END MAIN