Multiply
The Multiply processor multiplies values from numeric attributes.
Use Multiply to multiply numeric values.
The multiplied value may be used to check business rules. For example, you might multiply values from a Quantity attribute and a UnitPrice attribute in order to check that the value in an OrderValue attribute is correct.
The following table describes the configuration options:
| Configuration | Description |
|---|---|
|
Inputs |
Specify any numeric attributes that you want to multiply together, or an array of numeric attributes, in which case all the elements will be multiplied. |
|
Options |
None. |
|
Outputs |
Describes any data attribute or flag attribute outputs. |
|
Data Attributes |
The following data attributes are output:
|
|
Flags |
None. |
The Multiply transformer presents no summary statistics on its processing.
In the Data view, each input attribute is shown with the new MultipliedValue to the right.
Output Filters
None.
Example
In this example, a Units attribute is multiplied by a Price attribute to form a new attribute (Order Value) giving the total Order Value. The default added Attribute name (MultipliedValue) is renamed to Order Value in the processor configuration.
This new attribute can be checked to see if it is equal to the Value of the Order stored in the system:
| Price | Units | Order Value |
|---|---|---|
|
14.99 |
138.1 |
2070.119 |
|
14.99 |
138.15 |
2070.8685 |
|
14.99 |
138.33 |
2073.5667 |
|
14.99 |
138.4 |
2074.616 |
|
14.99 |
138.41 |
2074.7659 |
|
14.99 |
155.31 |
2328.0969 |
|
14.99 |
138.61 |
2077.7639 |
|
14.99 |
138.65 |
2078.3635 |