velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Christian <si...@stoutstick.com>
Subject Re: How to Round of Double or float Value to 2 Decimal place
Date Mon, 22 Nov 2004 10:52:13 GMT
This is for the users list really.

That said, you can easily do this using the MathTool from Velocity 
Tools, see:

http://jakarta.apache.org/velocity/tools/generic/MathTool.html#roundTo()

- simon

sri dhar wrote:
> Hi ,
>  Can anybody tell me that how to round off a decimal value into two decimal places in
velocity.
>  For example var x=7.77777888;
>  i want to have a round off value of 7.78.
> 
> Thanks in Advance
> Sridhar


---------------------------------------------------------------------
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