1. Docs
  2. Formulas
  3. Functions

ABS

Returns the absolute value of a number.

Categories: Numbers

Syntax

ABS(number)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": -17
4
}
5
}

Formula

ABS(my_action.message)

Output

17

Example 2

Input

1
{
2
"my_action": {
3
"message": 4
4
}
5
}

Formula

ABS(my_action.message)

Output

4

Example 3: ABS will also work on text that only contains a number.

Input

1
{
2
"my_action": {
3
"message": "-19.86"
4
}
5
}

Formula

ABS(my_action.message)

Output

19.86

Sample actions

Event Transform
My Action
Event Transform
ABS

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?