velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wglasshus...@gmail.com>
Subject Re: floating number comparison
Date Thu, 02 Oct 2008 19:36:22 GMT
Use Velocity 1.5 -- it should be a drop-in upgrade.  (there's a few changes
to dependent jar files).  Among other improvements, it offers full floating
point and other number support.

WILL

On Thu, Oct 2, 2008 at 11:36 AM, jian chen <chenjian1227@gmail.com> 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?
>
> Thanks in advance,
>
> Jian
>



-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message