Category: Processing
Description: Perform mathematical operations (add, subtract, multiply, divide, random, absolute, square root, floor, ceil, truncate, max, min)
Add
Sum two numbers together
| Name | Type | Required | Description |
|---|
| Number 1 | number | true | The first number to add |
| Number 2 | number | true | The second number to add |
Outputs
| Name | Type | Description |
|---|
| Result | number | The sum of the two inputs |
Output Event Triggers
Subtract
Subtract one number from another
| Name | Type | Required | Description |
|---|
| Number 1 | number | true | The number to subtract from |
| Number 2 | number | true | The number to subtract |
Outputs
| Name | Type | Description |
|---|
| Result | number | The difference between the two numbers |
Output Event Triggers
Multiply
Multiply two numbers together
| Name | Type | Required | Description |
|---|
| Number 1 | number | true | The first number to multiply |
| Number 2 | number | true | The second number to multiply |
Outputs
| Name | Type | Description |
|---|
| Result | number | The product of the two numbers |
Output Event Triggers
Divide
Divide one number by another
| Name | Type | Required | Description |
|---|
| Number 1 | number | true | The number to be divided |
| Number 2 | number | true | The number to divide by |
Outputs
| Name | Type | Description |
|---|
| Result | number | The quotient of the two numbers |
Output Event Triggers
Random
Get a random number between two numbers
| Name | Type | Required | Description |
|---|
| Number 1 | number | true | The minimum number |
| Number 2 | number | true | The maximum number |
Outputs
| Name | Type | Description |
|---|
| Result | number | A random number between the two numbers (inclusive) |
Output Event Triggers
Abs
Get the absolute (positive) value of a number
| Name | Type | Required | Description |
|---|
| Number | number | true | The number to get the absolute value of |
Outputs
| Name | Type | Description |
|---|
| Result | number | The absolute value of the number |
Output Event Triggers
Pow
Raise a number to a power
| Name | Type | Required | Description |
|---|
| Number 1 | number | true | The base |
| Number 2 | number | true | The exponent |
Outputs
| Name | Type | Description |
|---|
| Result | number | The result of the base raised to the exponent |
Output Event Triggers
Sqrt
Get the square root of a number
| Name | Type | Required | Description |
|---|
| Number | number | true | The number to get the square root of |
Outputs
| Name | Type | Description |
|---|
| Result | number | The square root of the number |
Output Event Triggers
Round
Round a number to the nearest integer
| Name | Type | Required | Description |
|---|
| Number | number | true | The number to round |
Outputs
| Name | Type | Description |
|---|
| Result | number | The rounded number |
Output Event Triggers
Floor
Get the largest integer less than or equal to a number
| Name | Type | Required | Description |
|---|
| Number | number | true | The number to floor |
Outputs
| Name | Type | Description |
|---|
| Result | number | The floored number |
Output Event Triggers
Ceil
Get the smallest integer greater than or equal to a number
| Name | Type | Required | Description |
|---|
| Number | number | true | The number to ceil |
Outputs
| Name | Type | Description |
|---|
| Result | number | The ceiled number |
Output Event Triggers
Trunc
Get the integer part of a number
| Name | Type | Required | Description |
|---|
| Number | number | true | The number to truncate |
Outputs
| Name | Type | Description |
|---|
| Result | number | The truncated number |
Output Event Triggers
Max
Get the maximum value in an array of numbers
| Name | Type | Required | Description |
|---|
| Number Array | number-array | true | The array of numbers to find the maximum of |
Outputs
| Name | Type | Description |
|---|
| Result | number | The maximum number in the array |
Output Event Triggers
Min
Get the minimum value in an array of numbers
| Name | Type | Required | Description |
|---|
| Number Array | number-array | true | The array of numbers to find the minimum of |
Outputs
| Name | Type | Description |
|---|
| Result | number | The minimum number in the array |
Output Event Triggers