Numbers
Calculate with numbers, convert text to numbers and format numbers for display.
Add
Adds two numbers.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| A | Decimal number | Yes | First addend. |
| B | Decimal number | Yes | Second addend. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The sum a + b. |
Subtract
Subtracts the second number from the first.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| A | Decimal number | Yes | Minuend. |
| B | Decimal number | Yes | Subtrahend. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The difference a - b. |
Multiply
Multiplies two numbers.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| A | Decimal number | Yes | First factor. |
| B | Decimal number | Yes | Second factor. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The product a * b. |
Divide
Divides the first number by the second.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| A | Decimal number | Yes | Dividend. |
| B | Decimal number | Yes | Divisor. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The quotient a / b. |
Remainder after division
Returns the remainder of dividing a by b.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| A | Decimal number | Yes | Dividend. |
| B | Decimal number | Yes | Divisor. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The remainder a % b. |
Round
Rounds a number to the nearest whole number.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The number to round. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Whole number | The rounded whole number. |
Round to decimals
Rounds a value to the given number of decimal places.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The value to round. |
| Decimals | Whole number | Yes | Number of decimal places to keep. Minimum: 0. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The rounded value. |
Floor
Rounds a number down to the nearest whole number.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The number to floor. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Whole number | The rounded-down whole number. |
Ceiling
Rounds a number up to the nearest whole number.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The number to round up. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Whole number | The rounded-up whole number. |
Minimum
Returns the smallest value in a list.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Values | List of Decimal number | Yes | Numbers to compare. Minimum items: 1. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The smallest value. |
Maximum
Returns the largest value in a list.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Values | List of Decimal number | Yes | Numbers to compare. Minimum items: 1. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The largest value. |
Limit between min and max
Constrains a value to the range [min, max].
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The value to clamp. |
| Minimum | Decimal number | Yes | The lower bound. |
| Maximum | Decimal number | Yes | The upper bound. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The clamped value. |
Sum
Adds together all values in a list. An empty list sums to 0.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Values | List of Decimal number | Yes | Numbers to add. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The sum of the values. |
Average
Returns the arithmetic mean of a list of values. An empty list averages to 0.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Values | List of Decimal number | Yes | Numbers to average. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The mean of the values. |
Absolute value
Returns the absolute value of a number.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The number. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The absolute value. |
Power
Raises a base to an exponent.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Base | Decimal number | Yes | The base value. |
| Exponent | Decimal number | Yes | The exponent. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | base raised to exponent. |
Square root
Returns the square root of a non-negative number.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | Non-negative number. Minimum: 0. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The square root. |
Random whole number
Generates a random whole number between min and max (inclusive).
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Min | Whole number | Yes | Minimum value (inclusive). |
| Max | Whole number | Yes | Maximum value (inclusive). |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Whole number | The random whole number. |
Random decimal number
Generates a random decimal number between min and max.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Min | Decimal number | Yes | Minimum value (inclusive). |
| Max | Decimal number | Yes | Maximum value (exclusive). |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The random number. |
Text to whole number
Reads a whole number from text. Returns an empty value if invalid.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Text | Text | Yes | The text to read. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Whole number | The whole number, or empty. May be empty. |
Text to decimal number
Reads a decimal number from text. Returns an empty value if invalid.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Text | Text | Yes | The text to read. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The decimal number, or empty. May be empty. |
Convert to large whole number
Turns text or a whole number into a big whole number, which stays exact at any size. Text may only contain digits, with an optional minus sign in front; anything else fails.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Text | Text | No | The digits to read, for example 9007199254740993. Use this or Number. Use only one of these: Number. |
| Number | Whole number | No | A whole number to convert. Use this or Text. Use only one of these: Text. |
Outputs
| Name | Type | Details |
|---|---|---|
| Large whole number | Large whole number | The big whole number. |
Large whole number to whole number
Turns a big whole number into a normal whole number for the other math actions. Fails when the number is too large to stay exact as a normal number (beyond about 9 quadrillion).
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Large whole number | Large whole number | Yes | The big whole number to convert. |
Outputs
| Name | Type | Details |
|---|---|---|
| Whole number | Whole number | The same number as a normal whole number. |
Calculate with large whole numbers
Adds, subtracts, multiplies, divides or takes the remainder of two big whole numbers, exactly, and compares them. Dividing by zero fails.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| a | Large whole number | Yes | The first large whole number. |
| Operation | Large whole number operation | Yes | What to calculate. Default: Add. |
| b | Large whole number | Yes | The second large whole number. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Large whole number | The result of the operation. |
| Comparison | Whole number | -1 when a is smaller than b, 0 when they are equal, 1 when a is larger. |
Format whole number
Converts a whole number to a text.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Whole number | Yes | The whole number. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Text | The text representation. |
Format decimal number
Formats a number with a fixed number of decimal places.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The number. |
| Decimals | Whole number | Yes | Number of decimal places (0-20). Value: 0 to 20. Default: 2. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Text | The formatted text. |
Human-readable number
Formats a number for humans, following the locale's conventions: grouped with thousands separators (e.g. 4,000,000) or compact (e.g. 4M / 4 million). Defaults to the server's language.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The number to format. |
| Style | Number style | Yes | How the number is rendered: grouped (thousands separators) or compact (abbreviated). Default: Grouped. |
| Decimals | Whole number | No | Optional number of decimal places (0-20). Grouped style shows exactly this many; compact styles show at most this many (default 1). Value: 0 to 20. |
| Locale | Text | No | Locale whose number conventions are used, e.g. "en" or "de". Defaults to the server's language. |
Outputs
| Name | Type | Details |
|---|---|---|
| Text | Text | The formatted number, e.g. "4,000,000" or "4M". |
Logarithm
Returns the logarithm of a value. Leave the base empty for the natural logarithm (base e). The value must be greater than 0.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The value to take the logarithm of (must be greater than 0). |
| Base | Decimal number | No | Logarithm base. Leave empty for the natural logarithm (base e). |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | The logarithm of the value. |
Exponential
Returns e raised to the power of the value.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Value | Decimal number | Yes | The exponent. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Decimal number | e raised to the power of the value. |