Number Data Types
INT, LONGINT, and VASTINT represent varying sizes of numbers and varying storage space usage, but otherwise receive identical treatment by the software. INT, LONGINT, and VASTINT values can contain only digits.
The NUMERIC data type represents numbers stored in character form and may therefore contain a leading sign (+, -) or an embedded decimal point, or both. Spaces are permitted before and after the leading sign, but not between digits.
Number Data Type Characteristics
Data Type | Decimals | Valid Range (Significant Digits) |
Storage Occupied |
INT | Any number | -32768 to 32767 | Two bytes |
LONGINT | Any number | -2147483647 to 2147483647 | Four bytes |
VASTINT | Any number | 15 significant digits | Eight bytes |
NUMERIC | Any number | 15 digits | One byte per character |
See Also
Data Types and Storage of Values