XenoGuard Documentation

Multiplicate

Actions » Programming » Number Operation » Basic » Multiplicate 

The action Multiplicate calculates the product of two numbers and stores the product in Result under the Result List. The following number types are allowed: Floating Point, Signed Number, and Unsigned Number.  




[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Number Operation node.
  3. In the Basic node, select the Multiplicate action.

Parameters:

The action has the following input parameters:


name Description
Number Type
Specifies the data type to be used for the numbers to be multiplied and its result.

Allowed Context Scope
 [Fixed]
Allowed Values [Floating Point, Signed Number, Unsigned Number]
Factor 1
The first number to be multiplied.

Allowed Context Scopes
[Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Factor 2
The second number to be multiplied.

Allowed Context Scopes
[Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Results:

The action returns the following results:

name
description
Result Contains the product of the two numbers.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Warning The number type set in the action Multiplicate determines the data type of its Result even if the variables and/or parameters that were set for factors are of different data types.

Example 1 (Multiplying two floating point variables):

This example multiplies the contents of the two local variables Work Hours and Rate. Both use the data type Floating Point. The result of the two numbers is then output via the Message Box.

Example 2 (Product of a floating point and a number variable):

This example multiplies the contents of the two local variables, Unit Price and Quantity. One of the variables uses the data type, Floating Point while the other is a Number. The result of the two numbers is then output via Speech Output.


See other actions:

Add
Subtract
Divide
Modulo
Power
Root
Increment
Decrement
Random