Lodol Docs

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

ParameterTypeRequiredDescription
valuenumberYesThe number to get the absolute (non-negative) value of.

Response

{
  "status": "success"
}

Round up

Round a number up to the nearest integer.

Parameters

ParameterTypeRequiredDescription
valuenumberYesThe number to round up to the nearest integer.

Response

{
  "status": "success"
}

Round down

Round a number down to the nearest integer.

Parameters

ParameterTypeRequiredDescription
valuenumberYesThe number to round down to the nearest integer.

Response

{
  "status": "success"
}

Maximum value

Get the largest value in a list of numbers.

Parameters

ParameterTypeRequiredDescription
valuesarrayYesA list of numbers. Returns the largest value.

Response

{
  "status": "success"
}

Average (mean)

Calculate the average of a list of numbers.

Parameters

ParameterTypeRequiredDescription
valuesarrayYesA list of numbers to calculate the average of.

Response

{
  "status": "success"
}

Minimum value

Get the smallest value in a list of numbers.

Parameters

ParameterTypeRequiredDescription
valuesarrayYesA 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

ParameterTypeRequiredDescription
valuesarrayYesA list of values. Returns the item that appears most often.

Response

{
  "status": "success"
}

Round number

Round a number to the nearest integer.

Parameters

ParameterTypeRequiredDescription
valuenumberYesThe number to round to the nearest integer (0.5 rounds up).

Response

{
  "status": "success"
}

Sum of list

Sum all numbers in a list.

Parameters

ParameterTypeRequiredDescription
valuesarrayYesA list of numbers to add together.

Response

{
  "status": "success"
}

On this page