1. Docs
  2. Formulas
  3. Functions

FLOOR

Rounds a number down to the nearest whole number.

Categories: Numbers

Syntax

FLOOR(number)

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?