--- alias: user-guide-automation-task-core-arithmeticoperation tags: - automation tasks description: "This task performs basic arithmetic calculations with configurable inputs and a single operation type" --- # Arithmetic Operation :material-timer-remove-outline: This task is set to be discontinued in the next major version. ![image71][image71] This task is meant to perform simple arithmetic operations between inputs. The supported operations are `Addition`, `Subtraction`, `Multiplication`, `Division`. ![image72][image72] ## Inputs | Name | Data Type | Values | Description | |-----------------|-----------|--------------------------------------|------------------------------| | `` | `enum` | `Integer`
`Long`
`Decimal` | The input values of the task | ## Outputs | Name | Data Type | Values | Description | | ------ | ---------| --------- | --------- | | `` | `enum` | `Integer`
`Long`
`Decimal` | Result of the arithmetic operation | ## Settings On the General Tab, you have the usual settings and the following options settings: | Name | Data Type | Values | Default | Description | | ------ | ---------| --------- | --------- | --------- | | Operation | `enum` | `Addition`
`Subtraction`
`Multiplication`
`Division` | | Possible operations | | Value type | `enum` | `Integer`
`Long`
`Decimal` | | Type of input value | | Decimal Places | `Integer` | | | Number of decimal places (only applies to `Decimals`) | ![image73][image73] On the *Inputs Tab*, you have the following options settings: | Name | Data Type | Values | Default | Description | | ------ | ---------| --------- | ----------- | ------ | | Name | `String` | | "Not specified" | Name of the input value | | Value type | `enum` | `Integer`
`Long`
`Decimal` | | Type of the input value | | Required | Boolean | | | Flag that determines if the input is required for the task to trigger | | Default Value | `enum` | `Integer`
`Long`
`Decimal` | | Default value for the input value | ![image74][image74] ## Behavior It executes an arithmetical operation to a set of inputs, it executes sequentially by order of inputs and it only permits one type of operation. If for example you define three inputs, value1, value2, value3, and select addition, the task will perform the value1 + value2 + value3 operation. ## Remarks This task was deprecated by the `Expression Evaluator` task. [image71]: ../images/arithmeticoperation-lg.svg [image72]: ../images/image72.png [image73]: ../images/image73.png [image74]: ../images/image74.png