HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Exponent modifier

HLASM Language Reference
SC26-4940-06

The exponent modifier specifies the power of 10 by which the nominal value of a constant is to be multiplied before it is converted to its internal binary representation. It can only be used with the fixed-point (H and F) and floating-point (E, D, and L) constants. The exponent modifier is written as En, where n can be either a decimal self-defining term, or an absolute expression enclosed in parentheses.

The decimal self-defining term or the expression can be preceded by a sign. If no sign is present, a plus sign is assumed. The range for the exponent modifier is -85 to +75. If a type extension is used to define a floating-point constant, the exponent modifier can be in the range -231 to 231-1. If the nominal value cannot be represented exactly, a warning message is issued.
Notes:
  1. Do not confuse the exponent modifier with the exponent that can be specified in the nominal value subfield of fixed-point and floating-point constants.

    The exponent modifier affects each nominal value specified in the operand, whereas the exponent written as part of the nominal value subfield only affects the nominal value it follows. If both types of exponent are specified in a DC operand, their values are added together before the nominal value is converted to binary form. However, this sum must lie within the permissible range of -85 to +75, unless a type extension is specified.

  2. The value of the constant, after any exponents have been applied, must be contained in the implicitly or explicitly specified length of the constant to be assembled.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014