Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

HEXADEC and IEEE attributes

HEXADEC and IEEE specify whether the associated variable is stored using the IBM hexadecimal floating point format or using the IEEE format. The HEXADEC and IEEE attributes are ignored except for floating-point variables.

Read syntax diagramSkip visual syntax diagram   .-IEEE----.
>>-+-HEXADEC-+-------------------------------------------------><
 

Default: IEEE except on z/OS where the default is HEXADEC

HEXADEC indicates that the variable is stored in hexadecimal (z/OS) format.

IEEE indicates that the variable is stored using the IEEE format.

The HEXADEC and IEEE suboptions of the DEFAULT compiler option may be used to change the default for this attribute.

On the Windows and AIX platforms, all computations are done using IEEE floating-point; variables declared HEXADEC will be converted to IEEE as necessary.

On the z/OS platform, floating-point computations can be done using one of 3 sets of floating-point instructions:

On the z/OS platform, the choice of which set of instructions is used for a float calculation is determined by two compiler options:

So, under the FLOAT(NODFP) and DEFAULT(HEXADEC) options, all computations are done using the hexadecimal floating-point instructions, and variables declared IEEE will be converted to HEXADEC. But, under the FLOAT(NODFP) and DEFAULT(IEEE) options, all computations are done using the IEEE binary floating-point instructions, and variables declared HEXADEC will be converted to IEEE as necessary.

Under the FLOAT(DFP) compiler option, the IEEE and HEXADEC attributes are valid only for FLOAT BIN, and the DEFAULT(IEEE/HEXADEC) option will be applied only to FLOAT BIN.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)