ROUND
Rounds an input number to the nearest whole number or, if precision is specified, to that number of decimal places.
Categories: Numbers
Syntax
ROUND(number, [precision])
Examples
Example 1
Input
1
{
2
"my_action": {
3
"message": 3.3
4
}
5
}
Formula
ROUND(my_action.message)
Output
3
Example 2
Input
1
{
2
"my_action": {
3
"message": 6.6
4
}
5
}
Formula
ROUND(my_action.message)
Output
7
Example 3
Input
1
{
2
"my_action": {
3
"message": 2435.135433
4
}
5
}
Formula
ROUND(my_action.message, 2)
Output
2435.14
Sample actions
Select an action to inspect
You can also click "Copy actions" and paste them in your Tines story to see how they work.