Average
Calculate an average value of input values.
Input/Output
Number of Connections: Min: 1/Max:Unlimited
| Input | Data Type | Description |
| InputN | Integer,Double,Decimal | A number |
| Output | Data Type | Description |
| Output1 | Double,Decimal | An average value |
Property
| Name | Property Type | Description |
| Scale | int | Specifies a the number of digits to the right of the decimal point when the output type is Decimal |
Topic
- When all input values are Double, the value is calculated as Double, then outputs a Double value. Otherwise, calculate as Decimal values, then outputs a Decimal value.
- When the output type is Decimal, calculated by specified scale. If rounding required, ROUND_HALF_UP is used.
Example
| Property | Output |
| Input1 | 100 | Scale | 0 | 200 |
| Input2 | 200 | | | |
| Input3 | 300 | | |
| Property | Output |
| Input1 | 2E-1 | Scale | 2 | .33 |
| Input2 | .46 | | | |