[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-user
Subject: Re: How to Round of Double or float Value to 2 Decimal place
From: Simon Christian <simon () stoutstick ! com>
Date: 2004-11-22 10:52:13
Message-ID: 41A1C4DD.1080400 () stoutstick ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic