Numeric data types

The numeric data types are used for storing numerical data.

The NUMERIC and DECIMAL data types, and the various kinds of INTEGER data types, are sometimes called exact numeric data types, in contrast to the approximate numeric data types FLOAT, DOUBLE, and REAL.

The exact numeric data types are those for which precision and scale values can be specified, while approximate numeric data types are stored in a predefined manner. Only exact numeric data is guaranteed accurate to the least significant digit specified after an arithmetic operation.

Data type lengths and precision of less than one are not allowed.

 Compatibility

BIGINT data type
BIT data type
DECIMAL data type
DOUBLE data type
FLOAT data type
INTEGER data type
NUMERIC data type
REAL data type
SMALLINT data type
TINYINT data type