HP 3000 Manuals

<MULTIPLY> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation


HP DeskManager Customization

<MULTIPLY> 

Syntax 

<MULTIPLY {var1} {var2} >

where:

var1                  numeric value in the range -32768 to 32767
var2                  numeric value in the range -32768 to 32767

Description 

<MULTIPLY> returns the result of var1 multiplied with var2.  Note that
values outside this range can be stored in variables but they will be
treated as unquoted strings and are invalid for use in arithmetic
expressions.  If the result of the multiplication would fall outside the
allowed range an error condition will result and HP Desk will print an
error message.

See also:  <ADD>, <NUMERIC>, <SUBTRACT>.

Example 

     &FORWARD <SUBTRACT <MULTIPLY <VAR num> 2> 1>

This will multiply the value held in variable num by 2, subtract 1 from
the result and then move forward that number of lines.



MPE/iX 5.0 Documentation