.toString() The .toString() function converts a double floating point or int to a string. Example 11 Using .toString() to convert an integer to a string Template: #set($a=10) #set($b=$a+10) #set($c=$b.toString()+10) $c Output: 2010
#set($a=10)
#set($b=$a+10)
#set($c=$b.toString()+10)
$c