Multiplicate
ActionStep Reference » Programming » Number Operation » Basic » Multiplicate
The ActionStep 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.
- Open the Programming node in the Workspace Explorer.
- Open the Number Operation node.
- In the Basic node, select the Multiplicate ActionStep.
Parameters:
The ActionStep 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 ActionStep 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] |
The number type set in the ActionStep 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 Basic operations:
Add
Subtract
Divide
Modulo
Power
Root
Increment
Decrement
Random