The document describes several data formats that can be used to store different types of data in a system, including:
- Short and long form fixed point formats to store integers using 16-bit or 32-bit representations
- Decimal packed and unpacked formats to store decimal numbers across 1 to 16 bytes
- Short and long form floating point formats to store floating point numbers using 32-bit or 64-bit representations
- A logical or character format to store up to 256 bytes of character/string data
Examples are provided for each format to illustrate how data would be represented.
2. The System can store different types of
data with different formats.
Short form fixed point(half-word i.e. 16 bits)
Long form fixed point (full-word i.e. 32 bits)
Decimal packed (maximum size=16 bytes i.e. 1
to 16 bytes)
Unpacked (maximum size=16 bytes)
Short form floating point(32 bits)
Long form floating point(64 bits)
Logical or Character (maximum size=256 bytes
i.e. 1 to 256 bytes)
4. Short form fixed point(half-word i.e. 16 bits)
0 15
Example:-
(0000000010000011)2=13110
S
5. Long form fixed point (full-word i.e. 32 bits)
0 31
Example:-
(00000000000000000000000010000011)2=13110
S
6. Decimal packed (maximum size=16 bytes i.e.
1 to 16 bytes)
0 3 4 7 ..
Example:-
0001 0011 0001 0=+13110
D D .. D S
7. Unpacked (maximum size=16 bytes)
0 34 711
Example:-
0000 0001 0000 0011 0000 0 0001=+13110
Here, 0000 is the content of the zone (Z) code.
Z D Z D . S D
8. Short form floating point(32 bits)
0 1 7 8 31
Example:-
00000101000000000000000010000011=+131*25
S C F
9. Long form floating point(32 bits)
0 1 7 8 63
Example:-
0000010100000000000000000000000000000000000000000000
000010000011=+131*25
S C F
10. Logical or Character (maximum size=256 bytes
i.e. 1 to 256 bytes)
0 78 15 1 to 256 bytes
Example:-
010000010 01000001 01000011 01001000= BACH
Ch Ch ..