# D.1 Model for Integer Data

In general, the model set for integers is defined as follows:

The following values apply to this model set:

- i is the integer value.
- s is the sign (either +1 or -1).
- q is the number of digits (a positive integer).
- r is the radix (an integer greater than 1).
- w(k) is a nonnegative number less than r.

The model for INTEGER(4) is as follows:

The following example demonstrates the general integer model for i = -20 using a base (r) of 2:

i = (-1) x (0 x 20 + 0 x 21 + 1 x 22 + 0 x 23 + 1 x 24)

i = (-1) x (4 + 16)

i = -1 x 20

i = -20

Previous Page Next Page Table of Contents