Google could tell you this:
http://www.google.com/search?q=velocity+convert+string+to+int

#set( $Integer = 0 )
$Integer.parseInt($string)

or use the MathTool (from VelocityTools 1.x and 2.x)
$math.toInteger($string).intValue()

On Thu, Nov 27, 2008 at 9:04 AM, John Cheesman
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can I do string to Int conversion in velocity?
>
> I have string properties that contain integers and I want to sum them,
>
> Thanks
>
> John
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to