際際滷

際際滷Share a Scribd company logo
Data Formats
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)
Symbol used in data formats
Short form fixed point(half-word i.e. 16 bits)
0 15
Example:-
(0000000010000011)2=13110
S
Long form fixed point (full-word i.e. 32 bits)
0 31
Example:-
(00000000000000000000000010000011)2=13110
S
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
 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
 Short form floating point(32 bits)
0 1 7 8 31
Example:-
00000101000000000000000010000011=+131*25
S C F
 Long form floating point(32 bits)
0 1 7 8 63
Example:-
0000010100000000000000000000000000000000000000000000
000010000011=+131*25
S C F
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 ..

More Related Content

Data formats

  • 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)
  • 3. Symbol used in data formats
  • 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 ..