Math by Lodol
API actions for the Math by Lodol integration.
Math by Lodol
Perform mathematical calculations and data analysis using Lodol's built-in Math provider.
Absolute value
Get the absolute (non-negative) value of a number.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | number | Yes | The number to get the absolute (non-negative) value of. |
Response
{
"status": "success"
}Round up
Round a number up to the nearest integer.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | number | Yes | The number to round up to the nearest integer. |
Response
{
"status": "success"
}Round down
Round a number down to the nearest integer.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | number | Yes | The number to round down to the nearest integer. |
Response
{
"status": "success"
}Maximum value
Get the largest value in a list of numbers.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
values | array | Yes | A list of numbers. Returns the largest value. |
Response
{
"status": "success"
}Average (mean)
Calculate the average of a list of numbers.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
values | array | Yes | A list of numbers to calculate the average of. |
Response
{
"status": "success"
}Minimum value
Get the smallest value in a list of numbers.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
values | array | Yes | A list of numbers. Returns the smallest value. |
Response
{
"status": "success"
}Most common (mode)
Find the most common value in a list. Returns the first if there is a tie.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
values | array | Yes | A list of values. Returns the item that appears most often. |
Response
{
"status": "success"
}Round number
Round a number to the nearest integer.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | number | Yes | The number to round to the nearest integer (0.5 rounds up). |
Response
{
"status": "success"
}Sum of list
Sum all numbers in a list.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
values | array | Yes | A list of numbers to add together. |
Response
{
"status": "success"
}