velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: ADD Function in Velocity
Date Thu, 14 Apr 2005 00:42:30 GMT
In Velocity 1.4 you can not add a long to an integer.

In the unreleased Velocity 1.5-dev you can combine numbers of any data types 
(doubles, ints, longs, BigDecimals, etc).

Download the nightly snapshot from:
http://cvs.apache.org/snapshots/velocity/

WILL

----- Original Message ----- 
From: "Majji, Sashibhushan" <SMajji@carreker.com>
To: <velocity-user@jakarta.apache.org>
Sent: Wednesday, April 13, 2005 12:50 PM
Subject: ADD Function in Velocity


>
> Hi All,
>
>  I am trying to use add functionality with external data
>
>  #set ( $value = $templet.getLongValue()  )
>
>  suppose now $value has value of 1
>
>  #set ( $value = $value + 1  )
>
> Still the total shows 1. Actually its not adding  value . Here
> $templet.getLongValue()   returns a long Value
>
> Thanks
> Sashi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message