Skip to main content
1 of 3

Multiplying a value with Ampscipt

I'd like to multiply the quantity value I have stored in my DE by 1.25. The DE field is set to number. I've named the variable @Pens. I created another variable @PensCost to store the value of @Pens x 1.25.

I've tried SET @PensCost = Multiply(@Pens, 1.25)

but I get an error message "Multiply Parameter Name: Value1 Parameter Ordinal: 1 Parameter Type: Numeric Submitted." What am I doing wrong?

I've used this same format for other products and it's working fine. When I use %%=v(@Pens)=%% it returns the quantity number so I know my variable does have data.