DIVIDED_BY
Divides a number by the specified number.
Categories: Numbers
Syntax
DIVIDED_BY(number, denominator)
Examples
Example 1
Input
1
{
2
"my_action": {
3
"message": 16
4
}
5
}
Formula
DIVIDED_BY(my_action.message, 4)
Output
4
Example 2: If you divide by a whole number, the result is rounded down to a whole number:
Input
1
{
2
"my_action": {
3
"message": 5
4
}
5
}
Formula
DIVIDED_BY(my_action.message, 3)
Output
1
Example 3: If you divide by a number with decimal places, the result will have decimal places:
Input
1
{
2
"my_action": {
3
"message": 5
4
}
5
}
Formula
DIVIDED_BY(my_action.message, 3.0)
Output
1.666666666666667
Example 4: You can multiply the denominator by 1.0 to force the result to have decimal places:
Input
1
{
2
"my_action": {
3
"message": 3
4
}
5
}
Formula
DIVIDED_BY(5, my_action.message * 1.0)
Output
1.666666666666667
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.