FLOOR

Rounds a number down to the nearest whole number.

Syntax 

FLOOR(number)

Usage examples 

Example 1

Input

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

Formula

FLOOR(my_action.message)

Output

1

Example 2

Input

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

Formula

FLOOR(my_action.message)

Output

2

Example 3

Input

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

Formula

FLOOR(my_action.message)

Output

67

Example 4

FLOOR will also work on text that only contains a number:

Input

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

Formula

FLOOR(my_action.message)

Output

3

Sample Actions 

Event transform
My Action
Event transform
FLOOR

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?