Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Numeric data types

&pagelevel(4)&pagelevel

Data type                    

Permitted content of a record element, value range

Length of a record element in bytes

DEC[IMAL][(n[,m])]

Positive or negative fixed-point number (packed) with sign.
n corresponds to the number of digits; of these m are decimal places.
1 <= n <= 15.0 <= m <= n

Example

SUBTOTAL DECIMAL(6,4)

 n +1
     rounded up

     2

Default: n =15; m =0

NUMERIC[(n[,m])]

Positive or negative fixed-point number (unpacked) with n digits; of these m are decimal places.
1 <= n <= 15.0 <= m <= n

Example

TOTAL NUMERIC(8,2)

n

Default: n =8; m =0

SMALLINT

Integer in the range from -32768 to 32767.

Example

DB-PAGE SMALLINT

2

INTEGER

Integer in the range from -2147483648 to 2147483647.

Example

COUNTER INTEGER

4