613-518-1166 info@zimdatabases.com

Developing ZIM Applications

Number Data Types

< All Topics

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

About Conditional Expressions

Conversion Between Data Types

Data Types and Storage of Values

Data Types and the Use of Database Indexes

How To Use Data Types

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents