Converting Numbers to Strings

RAMP-TS

Converting Numbers to Strings

If you have a number in JavaScript variable and you want to convert it to a string use the toString() function. For example:

var number = 5.65;
var stringnumber = number.toString();

alert(stringnumber);

SETVALUE("Amount",stringNumber);  
SETVALUE("Amount",number.toString());