Top: f77 Up: 10 - Format_Specifiers
Previous: 10,23 - O Next: 10,24,1 - F_field_descriptor


Section 10,24: P

 nP (Scale Factor Editing)

 The scale factor lets you alter, during input or output, the
 location of the decimal point both in real values and in the two
 parts of complex values.

 The "n" is a signed or unsigned integer constant, in the range -128
 to 127, that specifies the number of positions to the left or right
 that the decimal point is to move.

 A scale factor can appear anywhere in a format specification, but
 must precede the first F, E, D, or G field descriptor that is to be
 associated with it and affects all subsequent real field
 descriptors in the same FORMAT statement (unless another scale
 factor appears.

 On input the scale factor of any of the F, E, D, and G field
 descriptors multiplies the data by 10**-n and assigns it to the
 corresponding I/O list element.  For example a 2P scale factor
 multiplies an input value by .01; a -2P multiplies an input value
 by 100.  However, if the external field contains an explicit
 exponent, the scale factor has no effect.

 E, D, or G field descriptors alter the form in which data is
 transferred.  On input a positive scale factor moves the decimal
 point to the left and a negative scale factor moves the decimal
 point to the right; on output, the effect is the reverse.

Sub-Topics

  1. F_field_descriptor
  2. E_field_descriptor
  3. D_field_descriptor
  4. G_field_descriptor

Top: f77 Up: 10 - Format_Specifiers
Previous: 10,23 - O Next: 10,24,1 - F_field_descriptor