Monarch 9460 Printer User Manual


 
Command Reference 5-63
MULTIPLY
Purpose Multiplies the contents of one field by the contents of another.
Syntax MULTIPLY
buffer-field1
,
buffer-field2
[ , [
invalid label
]
[ ,
valid label
] ]
Process The MULTIPLY command multiplies
buffer-field1
by
buffer-field2
, inserting the
product into
buffer-field2
.
The maximum value for the
buffer-field1
,
buffer-field2
, and the result is
429,496,795.
The
buffer-field
fields can be one the following:
Buffer-field1
and
2
Description
INPUT Input Buffer
Logical Field Name
(TEMP1)
Temporary Buffer
Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Logical Field Name
(Field1) [Index]
Array Buffer Field
Buffer-field1
only:
Number
Number prefixed by a
number sign (#)
Rule: The
buffer-field
fields must be numeric.
Optional Fields
Invalid
and
valid labels
are discussed in "Script Flow" at the beginning of this
chapter.
Example
This example multiplies PRICE by TEMP1, inserting the product into TEMP1. If
TEMP1 overflows, control passes to *ERROR2. If TEMP1 does not overflow,
control passes to the next line.
MULTIPLY PRICE,TEMP1,*ERROR2
See Also
DIVIDE
INC
SUB
ADD
DEC