AMPscript Math Functions

Use the math AMPscript functions to perform mathematical operations on numeric values.

This table lists all of the math-related AMPscript functions. The value in the Engagement column indicates whether Marketing Cloud Engagement supports the function. The value in the Next column indicates whether Marketing Cloud Next supports the function.

Function NameDescriptionEngagementNext
Add()Returns the sum of two numbers.✅ Yes✅ Yes
Divide()Returns the result of dividing the first parameter by the second parameter.✅ Yes✅ Yes
Mod()Returns the remainder after dividing the first parameter by the second parameter.✅ Yes✅ Yes
Multiply()Returns the product of two numbers.✅ Yes✅ Yes
Subtract()Returns the result of subtracting the second parameter from the first parameter.✅ Yes✅ Yes