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

Exponent characters

The picture characters K and E delimit the exponent field of a numeric character specification that describes floating-point decimal numbers. The exponent field is the last field of a numeric character floating-point picture specification. The picture characters K and E cannot appear in the same specification.

K
Specifies that the exponent field appears to the right of the associated position. It does not specify a character in the numeric character data item.
E
Specifies that the associated position contains the letter E, which indicates the start of the exponent field.

The value of the exponent is adjusted in the character value so that the first significant digit of the first field (the mantissa) appears in the position associated with the first digit specifier of the specification (even if it is a zero suppression character).

Table 42 shows examples of exponent characters.

Table 42. Examples of exponent characters
 
Source Attributes
Source Data
(in constant form)
 
Picture Specification
 
Character Value
 FLOAT(5)
FLOAT(5)
FLOAT(5)
 .12345E06
.12345E-06
.12345E+06
 V.99999E99
V.99999ES99
V.99999KS99
 .12345E06
.12345E-06
.12345+06
 FLOAT(5)
FLOAT(5)
FLOAT(5)
 -123.45E+12
001.23E-01
001.23E+04
 S999V.99ES99
SSS9.V99ESS9
ZZZV.99KS99
 -123.45E+12
+123.00Eb-3
123.00+02
 FLOAT(5)
FLOAT(5)
 001.23E+04
001.23E+04
 SZ99V.99ES99
SSSSV.99E-99
 +123.00E+02
+123.00Eb02

Terms of use | Feedback

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