In an email I have a variable coming in that is in string format (it's a price). I need to multiply that by another number, which means I need to convert the string to a number in the xx.xx
format.
Does anyone know of an AMPScript function that will do this? I can't find one. Thank you!
Best Answer
AMPScript is loosely typed. You may want to utilize the AttributeValue() function so you can detect empty values in either number. Here's how I would do it:
Output
Reference