You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Shinobu Kawai <sh...@gmail.com> on 2004/12/22 22:13:53 UTC
Re: sum two float or double ?
Hi Assia & Will,
> Right now in Velocity only Integer arithmetic works; decimal arithmetic is
> not supported.
>
> We've had a patch for a long time that upgrades Velocity to support decimal
> arithmetic; this should get added to the source code repository sometime
> during the next few weeks.
> http://issues.apache.org/bugzilla/show_bug.cgi?id=25874
Until then, you can use MathTool. :)
http://jakarta.apache.org/velocity/tools/generic/MathTool.html#add()
> $hom.getSalaire()
>
> $fem.getSalaire()
#set ( $sum = $math.add($hom.getSalaire(), $fem.getSalaire()))
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org