The .toDouble() function converts a string or int to a double floating point. This is useful, for example, when you need to perform calculations on field values retrieved from the Message. Field values are retrieved as strings, and if you want to perform calculations on these values you must first convert the strings to either int (see .toInt() below) or double floating point.#set($a=$message.total.toDouble())#set($b=$a+110.36)$b#set($a=$message.total)#set($b=$a+110.36)
OpenText StreamServe 5.6 | Updated: 2013-03-01 |