DIVIDED_BY

Divides a number by the specified number.

Syntax 

DIVIDED_BY(number, denominator)

Examples 

Example 1

Input

{
  "my_action": {
    "message": 16
  }
}

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

{
  "my_action": {
    "message": 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

{
  "my_action": {
    "message": 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

{
  "my_action": {
    "message": 3
  }
}

Formula

DIVIDED_BY(5, my_action.message * 1.0)

Output

1.666666666666667