# D.3 Model for Bit Data

The model set for bits (binary digits) interprets a nonnegative scalar data object of type integer as a sequence, as follows:

The following values apply to this model set:

- j is the integer value.
- s is the number of bits.
- wk is a bit value of 0 or 1.

The bits are numbered from right to left beginning with 0.

The following example demonstrates the bit model for j = 1001 (integer 9) using a bit number (s) of 4:

j = (w0 x 20) + (w1 x 21) + (w2 x 22) + (w3 x 23)

j = 1 + 0 + 0 + 8

j = 9

Previous Page Next Page Table of Contents