Contents - Index


 

Use EditMultiply to multiply the numeric value within a specified column range by a specified value and to store this calculated numeric value in the specified column range (i.e., to replace the original value with the calculated value).  The operation proceeds on a line-by-line basis for a specified group of lines.

 

EditMultiply may also be entered as EditMult[iply] or Mult[iply].

 

The group of lines can be specified by pre-selecting the lines (see Selection) or by using the FCT operand.  If neither a pre-selection or FCT operand is provided, the group of lines consists solely of the current line.

 

Required Operands

 

MULT is the numeric value by which to multiply the numeric value found in the specified column range.

 

Optional Operands

 

ROUND is the number of decimal positions to maintain in the result.

 

 Default: The number of decimal positions found in the numeric value found in the specified column range.

 

FCT specifies the number of lines to process.  If FCT is specified as an asterisk (*), all of the lines through the end of the session will be processed.

 

 Default: 1.

 

ZONE is the column range in which the numeric value is found. Enter it in the format xxx-yyy where xxx and yyy are numbers between 1 and the session maximum line width.  For example, ZONE=11-20 signifies columns 11 to 20.  ZONE=5 is the same as ZONE=5-5, ZONE=5-* specifies columns 5 through the session maximum line width, and ZONE=-5 is the same as ZONE=1-5.

 

 Default: current session zone.

 

Return Codes

 

OK Successful.

 

Examples

 

Increase the numeric value in the current zone by 3%.  Maintain 4 decimal positions:

 

=> mult 1.03,4

 

Perform the same operation through the end of the session:

 

=> mult 1.03,4,*