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


Scale modifier for fixed-point constants

HLASM Language Reference
SC26-4940-06

The scale modifier for fixed-point constants specifies the power of two by which the fixed-point constant must be multiplied after its nominal value has been converted to its binary representation, but before it is assembled in its final scaled form. Scaling causes the binary point to move from its assumed fixed position at the right of the rightmost bit position.
Notes:
  1. When the scale modifier has a positive value, it indicates the number of binary positions occupied by the fractional portion of the binary number.
  2. When the scale modifier has a negative value, it indicates the number of binary positions deleted from the integer portion of the binary number.
  3. When low-order positions are lost because of scaling (or lack of scaling), rounding occurs in the leftmost bit of the lost portion. The rounding is reflected in the rightmost position saved.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014