The NUM / NUM operator divides the first number value by the second and returns the result.
This operator is one of Author's arithmetic operators that you can use in calculations.
Operator | Model | After you drag and drop the model into the script tab: | Expression returns: |
/ | ⟦NUM⟧ / ⟦NUM⟧ | Replace the ⟦NUM⟧ placeholders with the numeric values you want to divide. | A number value. |
The following script calculates a daily average by dividing the number variable SumNU by 7.
SET DailyAverageNU TO SumNU / 7
After you download the example template, you can import the template to any workspace to see this example code in action.