FORTRAN Reference Manual
Statements
FORTRAN Reference Manual—528615-001
7-48
Editing Numeric Data
The Z Descriptor
The Z w and Z w. m descriptors convert a data value to a hexadecimal (base sixteen)
external representation. You can also produce hexadecimal conversion using an I w.
m.16 descriptor. The hexadecimal digits are 0 through 9 and uppercase letters A
through F. Each hexadecimal digit represents four bits of the internal data value. On
input, the lowercase letters a through f are equivalent to the corresponding uppercase
letters.
For example, suppose the data item is type INTEGER*4. The hexadecimal
conversions produced are shown in Table 7-5 (circumflexes designate blank
characters).
0O20
^^^^^^^^^^^^^^^^^^^
0
5O20
^^^^^^^^^^^^^^^^^^^
5
-3 O20
^^^^^^^^^
37777777775
0 I20.6.8
^^^^^^^^^^^^^^
000000
5 I20.6.8
^^^^^^^^^^^^^^
000005
-3 I20.6.8
^^^^^^^^^^^^^
-000003
0O20.6
^^^^^^^^^^^^^^
000000
5O20.6
^^^^^^^^^^^^^^
000005
-3 O20.6
^^^^^^^^^
37777777775
Table 7-5. Values Converted With the Z Descriptor (page 1 of 2)
Internal Value
Format
Descriptor External Value
0 I6.1.16
^^^^^
0
5 I6.1.16
^^^^^
5
-3 I6.1.16
^^^^
-3
0Z6
^^^^^
0
5Z6
^^^^^
5
-3 Z6 ******
0Z12
^^^^^^^^^^^
0
5Z12
^^^^^^^^^^^
5
-3 Z12
^^^^
FFFFFFFD
0 I12.8.16
^^^^
00000000
5 I12.8.16
^^^^
00000005
-3 I12.8.16
^^^
-00000003
Table 7-4. Values Converted With the O Descriptor (page2of2)
Internal Value Format Descriptor External Value










