Divide
This function returns the result (quotient) of dividing the first parameter by the second parameter.
Arguments
Divide(1,2)
Ordinal | Type | Required | Description |
---|---|---|---|
1 | Number | True | Value to be divided (dividend) |
2 | Number | True | Value to divide by (divisor) |
Example 1
%%[
var @quotient, @num1, @num2
set @num1 = 10
set @num2 = 2
set @quotient = divide(@num1, @num2)
]%%
%%=v(@num1)=%% / %%=v(@num2)=%% = %%=v(@quotient)=%%
Output
10 / 2 = 5
Example 2
Not a subscriber? Subscribe now.