On Thu, Oct 2, 2008 at 11:36 AM, jian chen <[EMAIL PROTECTED]> wrote:
> Dear Velocity Gurus,
>
> I am a long term Velocity user. We are still on Velocity 1.4 for our
> production system.
>
> Just wondering how to do the floating number comparison. It seems Velocity
> only supports Integer comparison, right?
>
> I found out a tool called MathTool that I might be able to use. The method
> sub() could do that and then, round() to integer to see if the result is >
> 0. But, it is a bit convoluted.
>
> Does the new Velocity release support decimal/floating number comparison? Or
> is there some good tool?

if you're stuck with Velocity 1.4 for some reason, you could always
create your own tool.  Just create a public class with a public method
that does what you want and put an instance of it in your context.

> Thanks in advance,
>
> Jian
>

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

Reply via email to