Contents - Index


 

Use MULTIPLY to arithmetically multiply a specified variable by a specified value.

 

VarMultiply may also be entered as VarMult[iply] or Mult[iply].

 

Required Operands

 

OPER1 is the name of a previously declared numeric variable.

 

OPER2 is a non-negative numeric integer.

 

The contents of the OPER1 variable will be multiplied by the OPER2 value. The result will be stored in the OPER1 variable.

 

Return Codes

 

OK Successful.

 

Examples

 

Procedure to calculate the percent of BIM-EDIT 16K memory blocks currently in use:

 

 ------------------------------------------------------------------------

 SET PPDVBL,1

 DCL PERCENT,NUM,8,V

 SETD PERCENT,MMP16KUS

 MULTIPLY PERCENT,1000            ;SCALE BEFORE INTEGER DIVISION

 DIVIDE PERCENT,&MMP16KDP

 ADD PERCENT,5                    ;ROUND TO NEAREST PERCENT

 DIVIDE PERCENT,10

 EXIT OK,'&PERCENT.% OF 16K MEMORY BLOCKS ARE IN USE'

 ------------------------------------------------------------------------