XenoGuard 4.0 Documentation

Divide

ActionStep Reference » Programming » Number Operation » Basic » Divide 

The ActionStep Divide calculates the quotient between two numbers and stores the quotient in Result of 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 Divide 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 divided and its result.

Allowed Context Scope
 [Fixed]
Allowed Values [Floating Point, Signed Number, Unsigned Number]
Dividend
The number to be divided.

Allowed Context Scopes
[Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Denominator
The number that divides the dividend.

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

Results:

The ActionStep returns the following results:


name
description
Result Contains the quotient of the two numbers.

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

Warning The number type set in the ActionStep Divide determines the data type of its Result even if the variables and/or parameters that were set for dividend and denominator are of different data types.

Example 1 (Quotient of two variables):

This example divides the contents of the two local variables, Loan Amount and Payment Terms. 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 the Message Box.


See other Basic operations:

Add
Subtract
Multiplicate
Modulo
Power
Root
Increment
Decrement
Random